Quantcast
Channel: PowerShell.org » All Posts
Browsing all 13067 articles
Browse latest View live

Reply To: NTFS ACLs

Ah i see! thats quite helpful that you get a similar error with AD groups – i did think it was something to do with that, so i put a couple of 'sleeps' between functions so to give it a chance to...

View Article


Image may be NSFW.
Clik here to view.

Reply To: NTFS ACLs

Hey Raymond your right mate. It is to do with the AD group, i replaced it with just the group name rather than the variables and it works perfect so something going wrong there – but thats kool i know...

View Article


PowershellGet – Find-Module

On Windows 8.1, Find-Module doesn't pull modules from the Powershell Module gallery. I was manually able to download and install NuGet in the correct folder, but now I am stuck again. Does find-module...

View Article

Reply To: Help with ByPropertyName

What was driving me nuts is the name property is one of the ten properties that get-adcomputer retrieves by default. Dave, thanks for the tip that the AD cmdlets don't behave normally. When I tried...

View Article

Reply To: PowershellGet – Find-Module

As the error indicates, you're not allowed to use a URL that has a ?query in it. This might be something better logged as a bug on Connect.

View Article


Reply To: Issue reading a file into an inventory script

So, perhaps you're actually having a "problem" rather than an "issue," but you don't indicate what that problem is. Assuming you have a CSV file with a computername column…...

View Article

Creating a folder remotely using variables

First off I'm a real noobe to PS less than 2 weeks of playing with it and I'm having some success but I'm stuck on the following .. trying to figure out why it not working #Imports Web Administration...

View Article

Reply To: Creating a folder remotely using variables

From the looks of it I assume you're just wanting to create a single folder on a remote server. At first glance, you're using remoting when you don't have to. I'd eliminate some complexity from this...

View Article


Reply To: Creating a folder remotely using variables

Great… Thanks for the help It worked great and less complicated. How would I write it if I wanted to put the same folder on several servers? Can I use sessions in place of the server name? Thanks Mike

View Article


Reply To: Creating a folder remotely using variables

Adam is right you can just use the C$ admin share to create a folder on a remote server. An alternative approach would be to tell PowerShell that you want the variables in your controller script to be...

View Article

Reply To: Creating a folder remotely using variables

To put the same folder on several servers try this: $Servers='SERVER1','SERVER2','SERVER3' $Group = 'GCE' $NewFolder = 'WebAdmin'   $Servers | foreach { New-Item "\\$($_)\c$\web\www\$Group\$NewFolder"...

View Article

Reply To: AD User Importing Script Adjustments

Sean, -f is the PowerShell format operator. {0} defines the first value to be inserted into the string. In your case the Samaccountname to complete the home directory path. Please try below simple...

View Article

Reply To: Creating a folder remotely using variables

LOL… as a fun side note… #Imports Web Administration Module Import-Module WebAdministration One nice thing about PowerShell is that command names can be pretty obvious. You don't necessarily need that...

View Article


Reply To: PowershellGet – Find-Module

Thanks for the response. It is the proxy server at work. Attach laptop to LAN cable and configure required proxy in IE. Fails Remove LAN cable and connect to internal wireless which has no proxy....

View Article

Reply To: Help with ByPropertyName

Just another note that if you only need the Name property, you will have some better performance just getting the required properties. Get-ADComputer -Filter Name | Select-Object Name |...

View Article


DSC and Package resource (EXE) with environment variable

I am trying to install a .exe setup package using the Package resource. The .exe uses an environment variable during the installation and the environment variable has been set in the server image so...

View Article

Reply To: NTFS ACLs

Glad it provided some light for you. I found when trying to troubleshoot things, I ended up putting the Set-ACL between every rule as it only throws the error when it actually attempts to set the ACL,...

View Article


Reply To: DSC and Package resource (EXE) with environment variable

Hi Dave, Thank you for your response. The software I am trying to install is RabbitMQ and the installation runs fine and the product gets installed but if the environment variable RABBITMQ_BASE is...

View Article

Reply To: Creating a folder remotely using variables

Thanks every one for all the great help. As for as typing goes and the "Documentation" where I'm at likes to see lines like #Imports Web Administration Module. Don't ask me I just work here LOL Thanks...

View Article

Reply To: NTFS ACLs

You're working with .Net classes, so you should look at MSDN as a resource to see what properties are expected;...

View Article
Browsing all 13067 articles
Browse latest View live