Psexec med Windows Update VBScript
Hi it's Possible to run Psexec with PowerShell ?psexec \\COMPUTERNAME -u domain\username -p password %SYSTEMROOT%\system32\cscript C:\WUA_SearchDownloadInstall.vbsI have done a powershell script there...
View ArticleRun powershell as scheduled task. Should be simple?
Path to my script is on UNC and contains a space. To run it from powershell windows I have to type:& "\\domain.private\netlogon\Group Scripts\NirvanaRoleMembership.ps1"as apparently, unlike every...
View ArticleAdd-WindowsFeature using Proxy
I try to install several windows features using powershell with the following command:Add-WindowsFeature...
View ArticleSimple method to skip errors
Biting the bullet and moving from ds commands to powershell for automating group membership and shadow groups. Due to the fact there are at least 2 bugs I know of, reported years ago with no response...
View ArticleCertreq hangs when run remotely via Invoke-Command
Hi all,Hopefully someone can help with this as I'm banging my head against a wall at the moment.I've created a PowerShell script to automate the tasks from certificate creation to binding it to an IIS...
View ArticleExcel Chart Axis Maximum Fixed Value
I've wrote the following code to create a chart in Excel, but I need to specify the Y Axis to be fixed at 100 instead of set to the default of Auto.# Generate graph $xRow = 1 $yRow = $rows...
View ArticleAdd-Computer to domain with new name returns error
Hi Folks:I am writing a script that configures servers and joins them to a domain. Near the end of the script I've added the command,Add-Computer -DomainName 'domainname' -Credential (Get-Credential...
View ArticleLooking for a way to run this script using in text file to import the names...
I am looking for way to use this simple command to read a list of computers from a text file or a CSV then get the OU of each computer in my txt file. then write the computer name and OU to a excel...
View ArticleHow to add multiple dns servers to multiple servers
I am wanting to add more dns servers to remote servers via Powershell. I do not want to change what I already have for primary and alternate just add more. See screenshot. I tried to do this with...
View ArticleRemove-ADGroupMember where member is in parent domain and group is in child...
I have a parent domain (sandbox.local) and a child domain (child.sandbox.local) and want the capability to add and remove sandbox\User to a (domain local) group in the child domain. I can add the user...
View Articlesplatting & extra arguements
Hi,I am writing a series of wrapper functions for new-ADUser and Set-ADuser cmdlets. I seem to have reached a dead end on how to approach this. My problem is that I have a long list of params defined...
View ArticleRetrieving the COM class factory for component with CLSID...
Hey guys,I've used xp_cmdpowershell from SQL Server 2008 R2 to execute a powershell scripts. One of this scripts creates a internetexplorer.application object. When I execute this script on...
View ArticleGet-aduser -Filter email address
Hi, I have a csv file with a email address and the employ ID. I which to update the emply id according to the email...
View Articlerefactored and older 'filter' into an 'advanced function' - question
Hello,I have a 'filter' I wrote back in PS v1 days and have a renewed use for it, so I'm refactoring it using the advanced functions method... it worked as a filter, but as an advanced function was...
View ArticleUsing PowerShell 1.0 copy-item GroupPolicy...
Hello everybody,This is my first time posting in this forum and i have encounted an issue i hope you can help i'm trying to create a powershell 1.0 script as this is for Windows XP to copy default...
View ArticleUTF8 Encoding Not working
Hi, I am facing a problem and i couldn't find any solution online I am using Quest Active Roles Management Shell and having problem with Encoding. In My Dev, I am getting the correct data with properly...
View ArticleReport of Groups owned along with group memberships for each group, all in a...
Hello all,What I'm trying to do is generate a report of all groups owned by a specific user, along with the group memberships, and output it all to a single .csv file. In the .csv file, I would like to...
View ArticleCan this be done? Use ADSI logged in as a Local User to modify Domain User...
Scenario:- Newly imaged PC not joined to the domain logged in as a Local Admin (Username = User1)- Run a batch file to start a PowerShell Script as a Domain User (net use etc.. powershell.exe...
View ArticleExporting profile photos from Office365
HelloI'm working on a powershell script in to parts.Part 1 is to exporting user information data to a .csv fil - simple enough Part 2 is to find and exporting/downloading user/profile photos...
View ArticleFind WINS Servers on IPv4 Adapters
Hello,I have a list of servers in a text file. I need to find out what WINS servers are configured on the ip4 net adapter of each server in the text file. I am trying this but it's not...
View Article