Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

Script help for GPO

$
0
0

I have a powershell script that I am using as a computer startup script to install Lync 2013 and it works fine, here is my issue. I created a test OU and applied my GPO to that OU I also created a group in AD and added the computer that I wanted to test with in that group, I also added the group to the test ou.  Issue is the software will not deploy unless I actually move the Computer from it's original OU to the test OU that the GPO is lynced to, why wont the script work with just having the computer in the group?  Here is my script. 

#>
Start-process "\\myfileserver\sys02\SoftwareDeployedbyGPO\Lync2013Client\setup.exe" -argumentlist "/adminfile", "Updates/Lync2013.MSP" 

is there anything I can add to the script to help with my issue maybe a if member of groupname....or something?

Also how about adding a line that if already installed END......

sorry new to powershell here

thanks in advance

Bobby


Viewing all articles
Browse latest Browse all 10624

Trending Articles