Questions tagged as 'powershell'

1
answer

How can I get commas and keys in an html report?

I want to generate an HTML report with the win32_cdromdrive class, I need the CapabilityDescriptions object to display commas and keys. In the powershell if keys, commas and words are shown, but in the html report only words are displayed the...
asked by 08.07.2016 / 21:49
2
answers

Import Classes in PowerShell

I am creating a script in powershell that will make use of classes like this: Class Auto { [string]$Marca [string]$Color Auto ([string]$m,[string]$c) { $this.Color = $c $this.Marca = $m } } But I want...
asked by 20.03.2016 / 17:58
1
answer

Problem with loading Internet Explorer browser controlled by Powershell

I'm trying to make sure that while the browser is ready, it waits for seconds until it is ready and the code is executed but this is skipped and the code is executed when the browser is not ready. How do I prevent this from happening? / p> cls...
asked by 24.04.2018 / 19:23
1
answer

BATCH - Copy N files from a Windows directory

I am doing a process to copy different files from different folders, with the particularity that I need to pass, for example, 30 files of a directory (which contains more than 100). The 30 that I must pass, no matter what they are, should be 30....
asked by 13.04.2018 / 21:35
1
answer

Modify script

I have to configure a network printer and what I have to do is modify a script in Windows 7 that is already done on the internet. What I do not know is how to change the printer path or what to do so that when it is run on other computers, the p...
asked by 27.03.2018 / 01:22
1
answer

How to add prefix in each file

I'm looking for the easiest way to add a prefix to every file I have. The situation is that I have PDF files which are in several sub folders, which makes access difficult. But these sub folders belong to the same call reports. What I'm lo...
asked by 06.10.2017 / 15:14
1
answer

Create script to generate domain users in Powershell

I have to create a script that makes me a GPO for the Student Group and another for the teaching group, and create a pair of users per group, however it does not run. The code developed is the following: #Creamos las GPO New-ADOrganizational...
asked by 06.03.2017 / 22:01
3
answers

How to return the value of a variable from a function

I need to return the value of the variables from a function. This is the function, but the variables return them to me empty. function listcert { Get-ChildItem "P:\" -name Write-Host "" [string] $path = Read-Host -Prompt...
asked by 24.01.2017 / 20:02
0
answers

LONG ROUTES PathTooLongException POWERSHELL

I have a small problem with a script, I want to send an HTML report to the support group of my company through powershell ... The truth about the case well the script is simple. Until I've touched on this. I really do not know what t...
asked by 04.01.2019 / 14:56
2
answers

Unable to load SharePoint snap-in in PowerShell

I'm currently doing a script in powershell to add some items to a SharePoint list and add some columns to the same list, but by doing the following: param([Parameter(Mandatory=$true)][string] $urlSite, [Parameter(Mandatory=$true)][string] $url...
asked by 05.01.2016 / 22:12