Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

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 Article


Powershell: 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 Article


Best 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 Article

Running 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 Article

export 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 Article


Start 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 Article

Software 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 Article

Stopping 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 Article


Locate 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 Article


How 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 Article

Get 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 Article

Adding 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 Article

script 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 Article


error 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 Article

Create 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 Article


convert 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 Article

How 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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

Installing 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 Article

Image may be NSFW.
Clik here to view.

VS2012 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
Browsing all 2562 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>