Re: Normalizing a disk image

2013-03-07 Thread Free, Bob
LOL... forgot about that... sync; sync; sync; halt -Original Message- From: Ben Scott [mailto:mailvor...@gmail.com] Sent: Thursday, March 07, 2013 7:51 AM To: NT System Admin Issues Subject: [dkim-failure] Re: Normalizing a disk image On Thu, Mar 7, 2013 at 10:34 AM, Webster wrote: > I

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Steven Peck
If you dig down in task scheduler there are tons of examples to copy from. On Thu, Mar 7, 2013 at 1:08 PM, Crawford, Scott wrote: > And one more note: > > Powershell "get-process" > Powershell -command "get-process" > > both dump the process list, but > > powershell -file "get-process" > > fails.

RE: Normalizing a disk image

2013-03-07 Thread Ken Schaefer
James mentioned pre-fetch which IIRC is a Vista/7 technology that pre-loads frequently used binaries into memory at boot/logon time Cheers Ken From: Webster [mailto:webs...@carlwebster.com] Sent: Friday, 8 March 2013 5:29 AM To: NT System Admin Issues Subject: RE: Normalizing a disk image Maybe

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Crawford, Scott
And one more note: Powershell "get-process" Powershell -command "get-process" both dump the process list, but powershell -file "get-process" fails. -Original Message- From: Crawford, Scott [mailto:crawfo...@evangel.edu] Sent: Thursday, March 7, 2013 3:04 PM To: NT System Admin Issues

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Crawford, Scott
Total guess coming :) It seems like -Command would be used when you just want to run a one liner by passing the command directly, but -File is used when you want to run a .ps1. That being said, I just did a quick test from cmd and all 3 of these are equivalent (at least when the ps1 contains ge

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael Leone
On Thu, Mar 7, 2013 at 2:37 PM, Webster wrote: > I thought it was -File "c:\scripts\myscript.ps1". See, this is what's infuriating. Most of the examples I have found say you don't need "-Command" or "-File". Some say "-Command". Some say the 2 are equivalent. So I changed it to "-File", and ma

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael B. Smith
I always wrap powershell in a BAT and schedule the BAT. -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 7, 2013 2:34 PM To: NT System Admin Issues Subject: Re: Running Powershell script as scheduled task fails with 0x1 Sorry; this is Win 2008 R2.

RE: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Webster
I thought it was -File "c:\scripts\myscript.ps1". Carl Webster Consultant and Citrix Technology Professional http://www.CarlWebster.com -Original Message- From: Michael Leone [mailto:oozerd...@gmail.com] Sent: Thursday, March 07, 2013 2:30 PM To: NT System Admin Issues Subject: Running

Re: Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael Leone
Sorry; this is Win 2008 R2. On Thu, Mar 7, 2013 at 2:30 PM, Michael Leone wrote: > I can't understand why my script is failing. I can run it from a > Powershell prompt (I have to "Run as administrator", because the > script is deleting some files in a backup directory). But it works > perfectly w

Running Powershell script as scheduled task fails with 0x1

2013-03-07 Thread Michael Leone
I can't understand why my script is failing. I can run it from a Powershell prompt (I have to "Run as administrator", because the script is deleting some files in a backup directory). But it works perfectly when I do it that way. But when I create a Scheduled Task to do it, it fails with 0x1. I cr

RE: Semi-OT: Vsphere shutdown

2013-03-07 Thread Michael B. Smith
Funny. ☺ From: Webster [mailto:webs...@carlwebster.com] Sent: Wednesday, March 6, 2013 1:43 PM To: NT System Admin Issues Subject: RE: Semi-OT: Vsphere shutdown In that case, you will need MBS’ site! ☺ Carl Webster Consultant and Citrix Technology Professional http://www.CarlWebster.com

RE: Normalizing a disk image

2013-03-07 Thread Webster
Maybe you are thinking of the .Net Framework compiling that happens in the background??? http://social.msdn.microsoft.com/Forums/en/clr/thread/62c082cd-819a-4aa0-b526-65c05b0b0f13 http://msdn.microsoft.com/en-us/magazine/cc163610.aspx Carl Webster Consultant and Citrix Technology Professional h

Re: Semi-OT: Vsphere shutdown

2013-03-07 Thread Michael Leone
On Fri, Mar 1, 2013 at 12:02 PM, Robert Cato wrote: > > I would not put the hosts in maintenance mode. I always put my hosts into maintenance mode before powering them down. However, I have my vCenter on a physical box - I had problems when the vCenter was a VM on one of the hosts that was being

Re: Powershell advice - matching an AD user to a value in an array

2013-03-07 Thread Michael Leone
On Tue, Mar 5, 2013 at 11:39 AM, Michael B. Smith wrote: > Ok, small enough to do a brute force search. Yeah, I did something pretty much similar: $AllCSVUsers = @(Import-CSV $InputFileName) | Sort $TotCntCSVUsers = $AllCSVUsers.count $All_AD_Users = Get-QADUser -Enabled -SizeLimit 0 -LastName

RE: Normalizing a disk image

2013-03-07 Thread Webster
http://community.citrix.com/kits/#/kit/1067009 Only because it applies to the project I am on, I went through ALL the optimization guides and saw nothing about multiple boots before sealing. Carl Webster Consultant and Citrix Technology Professional http://www.CarlWebster.com

Re: Normalizing a disk image

2013-03-07 Thread kz20fl
Ah, top stuff, let me have a look at that, cheers! Sent from my Blackberry, which may be an antique but delivers email RELIABLY -Original Message- From: Webster Date: Thu, 7 Mar 2013 15:34:22 To: NT System Admin Issues Reply-To: "NT System Admin Issues" Subject: RE: Normalizing a disk

Re: Normalizing a disk image

2013-03-07 Thread Ben Scott
On Thu, Mar 7, 2013 at 10:34 AM, Webster wrote: > I have still not found anything about booting multiple times before sealing > the image. This reminds me of the old Unix superstition, "sync three times before shutting down". -- Ben ~ Finally, powerful endpoint security that ISN'T a resource

RE: Normalizing a disk image

2013-03-07 Thread Webster
http://support.citrix.com/servlet/KbServlet/download/24559-102-647700/XD%20-%20Top%2010%20Mistakes%20Identified%20When%20Doing%20Desktop%20Virtualization.pdf Item #6, page 8 is about Antivirus. I have still not found anything about booting multiple times before sealing the image. Carl Webster

RE: Normalizing a disk image

2013-03-07 Thread Webster
The AV one, yes, that is recommended. Boot 6 time, never heard of it. BUT I have heard of booting and waiting a long time so .net stuff has time to compile in the background but that was several years ago. Carl Webster Consultant and Citrix Technology Professional http://www.CarlWebster.com