invoke command 32 bit
Dearforum members,Ihave a question.I wantto use the commandinvoke-command tologinandthenrun a fewlines of codethat only workin 32bit,and i have a64bitserver.I washere in the forumalreadylookedand there...
View ArticlePowershell: Change filename abcd-123.pdf to 123-abcd.pdf
I have a folder with about 1000 files that are all named in the format: abcd-123.pdf. To allow these files to be organized correctly according to the 3-digit number (ie. the "123"), I have to change...
View ArticleBest practice for monitoring processes with low memory/cpu usage
Hello,I have a win 7 box running as a kiosk. Hardware could be an issue since it is really old and won't be changed. There's only one application that is running: IE. My aim is to re-launch IE whenever...
View ArticleRunning PS via Task Scheduler
Hi,I am running a script using Task Scheduler, it's all working when I manually run it but it seems to be hanging when it's run using Task Scheduler. The last 3 lines of code are the following...
View Articleexport to a csv and name the file the result of a variable
I want to export to a csv and name the file the result of the variable $xyz. The following does not work, but I'm...
View ArticleStart Process and Redirect Output to powershell window
Hey I am trying to use start-process to call a console app and redirect the output to the powershell window. Is that possible? I understand that I can redirect it to a file using:...
View ArticleSoftware Installs not logging in Event Viewer.
OS - Windows 7 Professional (x64bit)I am trying to find if there are ways to set so that when any software has been installed, it will get recorded in the event viewer. For example....I was trying to...
View ArticleStopping a Timer in WPF
I have a timer (DispatcherTimer) in my WPF window refreshing the screen every couple minutes from my database. When I quit the program, the timer appears to keep going. Looking online, it seems that...
View ArticleLocate PST files attatched to Outlook export to excel
My Script is working well sorta. The Variable $PST doesnt give the Location of the PST file. If I dump the Variable to a txt file it works fine. When I try to insert that into a specific cell in...
View ArticleHow to import-csv file with double quotes in the data
Hi,Scenario:Via PowerShell, I export the follwoing two column 'csv' file. Note, the 'description' column can contain any rich html syntax (<div>, class="some-name", qouble/single quotes,...
View ArticleGet accountExpires and set value as string to another another attribute.
I would like to run a PowerShell Script to Get AD accountExpires value and set display value as (friendly value) in a string format to another attribute.Anthony Marsiglia
View ArticleAdding the Users in a group through Powershell
Dear All,We have to import all the Mailbox enabled users to a Universal Distribution group and have to import all the Newly created Mailbox enabled user to the same group.I have got the following...
View Articlescript for Get-ExchangeCertificate
Hello all..I want to create a script to check my certificate for exchange..I need to know when it will expire...The idea is create the script and link with Nagios. The step for Nagios I can do by...
View Articleerror cloning VDI via powershell: virtual hard disk attach does not have a...
HiI am getting this error:New-SCVirtualMachine : A Virtual Hard Disk attached to test001-hv.site.com does not have a vhd file path specificed. (Error ID: 23243, Detailed Error: ) Specify a path to a...
View ArticleCreate CSV for list of files and folders
HelloI want to create a list of folders, their nested folder and files under each folder alongwith their file attributes likeFileNameLocationSizeFileTypeLastModifiedBy (Username who modified the file...
View Articleconvert to 24 hr time
I have this$starttime = $start.ToShortTimeString();which formats to8:45 AM or3:00 PMid like it to say08:45or15:00how can i format this $starttime = $start.ToShortTimeString(HH:mm);din't do the trick on...
View ArticleHow to list files and folders from Shared Network Folder
HelloI am generating CSV using following script. It is working correctly. But when I try to change the path from local folder to network folder and execute script from my machine nothing happens it...
View ArticleHow to use -Include and -Exclude as Input Parameter
HelloI am generating a CSV of list of files and folders for selected path. I created following script and it is working correctly.$Eliminate = @("*.docx","*.xlsx") $Include = @("*.pptx","*.txt")...
View ArticleInstalling VS2012 silently with PS on Win7 works, on Server 2008 doesn't....
When installing VS2012 silently with PS on Win7, I don't get any errors. On the Server 2008, it tells me, that it can't find the file specified, even though I can write the path into my PS window. The...
View ArticleVS2012 installation on Server 2008 with PS, no error messages but VS2012 is...
When running my script, it just completes after like 2 seconds but VS2012 will not be installed. The paths are all correct, I tested them before in another thread. It would print me an error message if...
View Article