Create a custom time zone
hiis there any way of powershell scripting or any other way to create a custom time zone for windows 2008 r2for example a zone with custom offset, DST of or on and ...i need this to set as time zone...
View ArticleForeach excel in folder
I am trying to write a loop to open each .xls in a folder and autofit() the columns. What would be the best way to accomplish this?THank you.
View ArticleGet string to variable - parse
Hello,I have a value at variable:PolyMES.DEV_20130814.1 Quality Changed To Staging Poly MES 3.0 (http://zserver/srutjggI only want to have the value after Changed To and (http) at variable.How can I do...
View ArticleHow to handle the call to functions of an object in an array
Hi,Based on Sapiens PrimalForms CE, I have started developping GUI for my admin scripts.Now I would like to get a step further by dynamically generating code based on the data available.I am working on...
View ArticleAdd a column in this script to put an '*' if the PercentFree is below 10%
I want to add a column to the output called ATTENTION. In that column I want to display an "*" if percentfree is < 10%Any suggestions?$servers = get-content servers.txt foreach ($server in...
View ArticleLaunching exe with 2 extra files
Hello Im trying to launch an exe file with 2 additional files it has to read to work. What i have so far is:&'D:\Somepath\some.exe' "D:\somepath\something.FTR" "D:\somepath\something.ini"How can i...
View Articleforeach problem
hello,i have a ps1 that reads the temp folder of remote computer en displays a list of the size of the folder. to be able to read the temp folder i must have the UNC path to the temp folder of the...
View ArticleFind Unknown Devices with PowerShell
When building a new server, I'll often open up devmgmt.msc (Device Manager) to verify that there are no "unknown" devices (those with the yellow exclamation point). Is there a way to do this with...
View Articlenesting foreach loops for file copy or move
So I've never tried nesting for each loops, but I thought I needed to in order to achieve the results I want.The purpose of this script is to loop through a list of servers and find a directory on each...
View Articleaduser.whenchanged date/time format different
HiI'm using powershell, part of my script uses aduser.lastchanged and writes the result to a registry string.When looking in ad attributes the date/time is for example 19-August-2013 12:25:11 GMT...
View ArticleImport-Module Keep Prompting for Credentials!
Hello,I'm trying to establish "Implict Remoting" session and exported all of the imported cmdlets into a module. But when I first execute any command, it asking me to enter password when it's trying to...
View ArticleRemote Desktop services Home folder from AD
I would like to get the following info from AD via a PowerShell V3 script:User NameSAM Account NameHome DirectoryRemote Desktop Services Home FolderI can get the User Name, SAM Account Name and Home...
View ArticleExecuting Powershell script with parameters remotely
I am trying to have one of our APP servers to serve as a central PS script server. Basically to have all the scripts we use run from a central point.I can run PS remotely etc but I'm having trouble...
View ArticleShare current folders on a drive
Looking for some help new to powershell.I am trying to use powershell to turn a current list of folders on a drive into hidden shares with the folder names, and give everyone full permissions to the...
View ArticleHow to create 100 test users with the username "testuser" (for example:...
How can I Create 100 test users with the username "testuser" (for example: testuser1,test user2,..etc) with password P@ssword using powershell?
View ArticlePowershell 3.0: Printing part of the script only runs in Task Scheduler when...
The script runs normally when run outside of Task Scheduler.
View ArticleInvoke msiexec on remote machine and get 0x80070005 error
Hi everyone,I'm trying to do a script in powershell that install msi files on remote machines in the same domain. When i use Invoke-Command to run simple cmdlets on remote machine everything works...
View ArticleSend parameters to button.add_click function created dynamically
Hi,I am creating a form with a TabControl that includes dynimically created TabPage, containing each on and off buttons.The way it is currently done, I am struggling to get the object I am currently...
View ArticleWindows PowerShell Web Access - Authentication problem
Hi,Don't know if this is the right forum for it, but I'm testing the Windows Powershell Web Access and having some trouble to configure...Scenario:Windows Server 2012 Standard (Virtual server name...
View ArticleOffice excel component to be installed or not on Production server
Hi Experts,I am using powershell to save a csv file to xlsx file using below code:$csvpath = 'CSVpath.csv' $xl = New-Object -COM 'Excel.Application' $xl.Visible = $false $wb =...
View Article