First I would try running that command in segments in my console window, to see if you get any output.
Break it down:
Get-QADUser -SizeLimit 0 -SearchRoot "ou=Ccntr-J,OU=Region Coastal,OU=Central Division,DC=home,DC=com,DC=com"
If you don't get all of the users in the Cost-Center-J OU here...
You're not really making a Powershell script here, this is much more of a VBscript posing as Powershell, for one.
For two, you can use Powershell's builtin Get-WmiObject cmdlet to query all Windows Installer (MSI) installed applications. This is a pretty powerful and simple way to get the...
You just need to remove hyphens?
Here is a simple example. You can use the -replace parameter of any variable to perform this operation.
PS C:\so> $numberswhashes = "12-45--5-5646-","770-97-606-","41124"
PS C:\so> $numberswhashes
12-45--5-5646-
770-97-606-
41124
PS C:\so> $numberswhashes...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.