Script to automatically reboot OS X every 30 mins
Hi,
I'm trying to figure out how to make Leopard reboot every 30 mins. Any ideas?
Thanks,
James
Try: crontab -e -root. Then write the lines into:
*/30 * * * * /sbin/reboot
Similar Messages
-
Will scripts run automatically ?
If I shut down my Mac everynight(I live in a time zone 6 hours ahead of Eastern US time), will the scripts run automatically when I start it up the next morning...or...do I need a special utility application for this ?
these scripts are not worth worrying about. you should just leave them alone. the OS does a very good job of running them all by itself. and they are all quite useless anyway. many people (apparently yourself included) seem to think that these periodic scripts are important maintenance tools and will make your system run better and faster. nothing can be further from the truth.
*monthly scripts* :
1. archive and recycle fax logs. have you used your mac as a fax machine lately?
2. write accounting information (total uptime of every account) in the monthly.out log.
That's IT. so unless you use your mac as a fax machine (do you, really?) you don't need to run monthly scripts. EVER.
*weekly scripts*:
in snow leopard they do one thing ONLY: rebuild whois database. it's only useful if you are a unix user and actually use the whois terminal command at least on occasion. I'll bet my bottom dollar you never have and never will. then you don't need to run the weekly scripts either. EVER.
*daily scripts*
they do several things
1. clean up the logs from /Library/Logs/CrashReporter which are more than 60 days old. hardly an urgent task. and those logs are really very few unless your system is seriously messed up. you can go a year without deleting any and will collect a few MBs at the most.
2. delete junk from /tmp directory that's more than 3 days old.
This is done automatically on every reboot without any periodic scripts. if you don't reboot the computer then daily scripts will run *no matter* the schedule. if you don't sleep the computer at night they'll run at night. if you do sleep the computer at night they will run first thing in the morning when the computer is turned on. again, zero need to reschedule anything.
3. deletes files older than 7 days from /var/rwho. this is only relevant if you are running a unix network. otherwise there is nothing to delete - EVER.
4. rotate accounting files. again, those are nonexistent unless you are a unix administrator.
5. run the terminal command *df -l -h* and print out the output to daily.out. all this command does is list currently mounted hard drives. useless.
6.print the current network status in daily.out. this is again just reporting not maintenance.
7. Delete system messages. Once again this is relevant only for multi-user Unix systems.
8. remove scratch fax files. see my comment above about using your mac as a fax machine.
9. it writes some other accounting and system status info to daily.out. this is again only reporting and is ONLY actually present on unix networks.
and that's all, folks. -
WSUS script for pending reboot possible addition - How
Hi, I am found script for pending reboot and script work perfectly. My problem is that script generate only pending computers reboot for master wsus server not for replica servers. Can I modify this script to generate pending reboot for all replica servers on
one place(wsus master server) or I must run this script on every replica server. This is script:
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | out-null
if (!$wsus) {
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
$computerScope = new-object Microsoft.UpdateServices.Administration.ComputerTargetScope;
$computerScope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::InstalledPendingReboot;
$updateScope = new-object Microsoft.UpdateServices.Administration.UpdateScope;
$updateScope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::InstalledPendingReboot;
$computers = $wsus.GetComputerTargets($computerScope);
$report = @()
$computers | foreach-object {
$computer = $_.FullDomainName
$updatesForReboot = $_.GetUpdateInstallationInfoPerUpdate($updateScope)
$updatesForReboot | foreach-object {
$temp = "" | Select Computer,Update
$temp.Computer = $computer
$temp.Update = ($wsus.GetUpdate($_.UpdateId)).Title
$report += $temp
$report | Select "Computer","Update" | Export-Csv -Path c:\..PendingReboot.csv -Delimiter 1 -NoTypeInformationModified script
work great. I have report from all replica server and master server after new updates
from today. I am add mail option and finaly this is what I am modify:
[reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration") | out-null
if (!$wsus) {
$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::GetUpdateServer();
$computerScope = new-object Microsoft.UpdateServices.Administration.computerTargetScope;
$computerScope.IncludeDownstreamComputerTargets = $true
$computerScope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::InstalledPendingReboot;
$updateScope = new-object Microsoft.UpdateServices.Administration.UpdateScope;
$updateScope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::InstalledPendingReboot;
$computers = $wsus.GetComputerTargets($computerScope);
$report = @()
$computers | foreach-object {
$computer = $_.FullDomainName
$updatesForReboot = $_.GetUpdateInstallationInfoPerUpdate($updateScope)
$updatesForReboot | foreach-object {
$temp = "" | Select Computer,Update
$temp.Computer = $computer
$temp.Update = ($wsus.GetUpdate($_.UpdateId)).Title
$report += $temp
$report | Select "Computer","Update" | Export-Csv -Path c:\yourpath...PendingReboot.csv -Delimiter 1 -NoTypeInformation
$smtpServer = "your mail server"
$att = "c:\yourpath...PendingReboot.csv"
$msg = new-object Net.Mail.MailMessage
$smtp = new-object Net.Mail.SmtpClient($smtpServer)
$msg.From = "[email protected]"
$msg.To.Add("[email protected]")
$msg.Subject = "Pending Reboot"
$msg.Body = "Your msg"
$msg.Attachments.Add($att)
$smtp.Send($msg) -
Hello, I have the following problem when I want to do the following:
I have to log measurements with a logger from pico (www.picotech.co.uk). This is a windows-software. Therefor I'm using parallels desktop 5. The measurement should take about three weeks. In this time the MBP way not turn off or go into sleep, because the pico-software must take every 5 seconds a sample of the voltage and write it to disk.
What's the problem:
After a certain time (always a little less than three hours) without keyboard or keypad access, the MBP reboots. When I touch the touchpad every two hours, the MBP does not reboot. So I can get through the day (when I'm in my testlab), but during the night the MMBP reboots.
What have I done to avoid this (without success):
- standard in Parallel's the windows energy settings are to never shut-down or hibernate
- in the Mac osX Lion software, I set the energy settings to never sleep.
- I downloaded and activated the program "Caffeine" to simulate activity to prevent MBP going asleep.
But nothing helps (till now).
I hope you guys can help me out...
Here I post the part of the system log when the reboot takes place. Can somebody confirm (or deny) that Parallels Desktop 5 could be the cause?
30/08/11 00:34:10,744 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:34:10,744 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:34:10,744 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:39:10,710 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:39:10,710 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:39:10,710 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:44:10,677 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:44:10,677 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:44:10,677 HPEventHandler NSLHexDecodeText is deprecated and will be removed soon. Please use CFURLCreateStringByReplacingPercentEscapes instead.
30/08/11 00:47:00,897 KernelEventAgent tid 00000000 received event(s) VQ_DEAD (32)
30/08/11 00:47:02,000 kernel /drv/ HypVMManager.c:302 Monitor quited successfully
30/08/11 00:47:05,000 kernel 0 0 AppleUSBCDC: start - initDevice failed
30/08/11 00:47:08,230 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,230 prl_client_app kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
30/08/11 00:47:08,230 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x3e
30/08/11 00:47:08,230 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,230 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x3e
30/08/11 00:47:08,231 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,231 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,231 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,231 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,231 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x3e
30/08/11 00:47:08,231 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,232 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,263 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,263 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x7d
30/08/11 00:47:08,264 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,264 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x7d
30/08/11 00:47:08,264 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,264 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,264 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,264 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,264 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x7d
30/08/11 00:47:08,264 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x3e
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x3e
30/08/11 00:47:08,265 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,265 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,265 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x3e
30/08/11 00:47:08,266 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,266 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,266 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,266 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,266 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x3e
30/08/11 00:47:08,266 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,266 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x3e
30/08/11 00:47:08,267 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,267 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,267 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,267 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 62
30/08/11 00:47:08,267 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x3e
30/08/11 00:47:08,267 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,267 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,268 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x74
30/08/11 00:47:08,268 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,268 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x74
30/08/11 00:47:08,268 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,268 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,268 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,268 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,268 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x74
30/08/11 00:47:08,268 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,268 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x7d
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,269 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x7d
30/08/11 00:47:08,269 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,269 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,269 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x7d
30/08/11 00:47:08,269 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,270 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,270 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x74
30/08/11 00:47:08,270 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,271 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,271 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x74
30/08/11 00:47:08,271 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,271 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,271 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,271 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,271 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x74
30/08/11 00:47:08,272 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,272 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,272 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x86
30/08/11 00:47:08,272 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,272 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x86
30/08/11 00:47:08,272 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,273 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,273 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,273 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,273 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x86
30/08/11 00:47:08,273 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,273 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,273 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,273 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,273 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x86
30/08/11 00:47:08,274 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,274 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x86
30/08/11 00:47:08,274 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,274 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,274 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,274 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,274 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x86
30/08/11 00:47:08,274 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,275 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,275 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,275 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x74
30/08/11 00:47:08,275 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,275 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x74
30/08/11 00:47:08,275 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,275 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,275 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 116
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x74
30/08/11 00:47:08,276 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,276 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x7d
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x7d
30/08/11 00:47:08,276 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,276 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,277 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 125
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x7d
30/08/11 00:47:08,277 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,277 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: CGSGetWindowTags: Invalid window 0x86
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: CGSGetWindowFlushSeed: Invalid window 0x86
30/08/11 00:47:08,277 prl_client_app -[NSPersistentUIManager getCurrentFlushSeedForWindow:]: CGSGetWindowFlushSeed(cid, (CGSWindowID)windowNumber, &result) returned CGError 1001 on line 2348
30/08/11 00:47:08,277 prl_client_app kCGErrorIllegalArgument: CGSGetSurfaceCount
30/08/11 00:47:08,278 prl_client_app -[NSPersistentUIManager snapshotWindow:handler:]: CGSGetSurfaceCount(cid, wid, &surfaceCount) returned error 1001 on line 2295
30/08/11 00:47:08,278 prl_client_app kCGErrorIllegalArgument: _CGSFindSharedWindow: WID 134
30/08/11 00:47:08,278 prl_client_app kCGErrorIllegalArgument: CGSLockWindowBackingStore: Invalid window 0x86
30/08/11 00:47:08,278 prl_client_app __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,279 [0x0-0x44044].com.parallels.desktop.console Aug 30 00:47:08 PVS-MBP-2008.local prl_client_app[561] <Error>: __CGPixelAccessLockWindowAccess: access lock failed: error 1001.
30/08/11 00:47:08,356 com.apple.launchd.peruser.501 ([0x0-0x6c06c].com.apple.Console[726]) Exited: Killed: 9
30/08/11 00:47:08,390 mds (Error) Server: ==== XPC handleXPCMessage XPC_ERROR_CONNECTION_INVALID
30/08/11 00:47:08,413 com.apple.launchd.peruser.501 ([0x0-0x62062].com.apple.AppleSpell[683]) Exited: Killed: 9
30/08/11 00:47:08,416 com.apple.launchd.peruser.501 (com.apple.quicklook[1267]) Exited: Killed: 9
30/08/11 00:47:08,583 com.apple.launchd.peruser.501 (com.apple.mdworker.pool.0[758]) Exited: Terminated: 15
30/08/11 00:47:08,743 loginwindow DEAD_PROCESS: 441 console
30/08/11 00:47:09,728 loginwindow CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
30/08/11 00:47:09,728 com.apple.loginwindow No session list!
30/08/11 00:47:09,728 loginwindow CGSLookupServerRootPort: Failed to look up the port for "com.apple.windowserver.active" (1102)
30/08/11 00:47:09,770 UserEventAgent CaptiveNetworkSupport:UserAgentDied:139 User Agent @port=26635 Died
30/08/11 00:47:09,854 prl_naptd Exiting Parallels Network Daemon
30/08/11 00:47:11,258 loginwindow Login Window Application Started
30/08/11 00:47:14,097 loginwindow **DMPROXY** Found `/System/Library/CoreServices/DMProxy'.
30/08/11 00:47:15,902 com.apple.SecurityServer Session 100011 created
30/08/11 00:47:15,903 loginwindow Login Window Started Security Agent
30/08/11 00:47:16,210 com.apple.launchctl.LoginWindow com.apple.findmymacmessenger: Already loaded
30/08/11 00:47:16,708 WindowServer kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
30/08/11 00:47:16,708 loginwindow kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type
30/08/11 00:47:16,708 loginwindow kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
30/08/11 00:47:17,481 UserEventAgent ACRR: Failed to save usage store to /Library/Application Support/CrashReporter/Intervals_36731CBE-B2C2-54E8-B132-48355AC06C89.plist
30/08/11 00:47:17,731 SecurityAgent Echo enabled
30/08/11 00:47:17,731 SecurityAgent Echo enabled
30/08/11 00:47:29,851 prl_vm_app This process is attempting to exclude an item from Time Machine by path without administrator privileges. This is not supported.
30/08/11 00:47:30,431 SecurityAgent kCGErrorFailure: CGSPackagesGetWorkspaceType: couldn't get workspace type
30/08/11 00:47:30,431 SecurityAgent kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.
30/08/11 00:55:32,973 UserEventAgent ACRR: Failed to save usage store to /Library/Application Support/CrashReporter/Intervals_36731CBE-B2C2-54E8-B132-48355AC06C89.plist
30/08/11 00:55:35,000 kernel hibernate image path: /var/vm/sleepimage
30/08/11 00:55:35,000 kernel sizeof(IOHibernateImageHeader) == 512
30/08/11 00:55:35,000 kernel Opened file /var/vm/sleepimage, size 4294967296, partition base 0x0, maxio 400000 ssd 0
30/08/11 00:55:35,000 kernel hibernate image major 14, minor 0, blocksize 512, pollers 5
30/08/11 00:55:35,000 kernel hibernate_alloc_pages flags 00000000, gobbling 0 pages
30/08/11 00:55:35,000 kernel hibernate_setup(0) took 0 ms
30/08/11 00:55:35,000 kernel /drv/ MacModule.cpp:261 powerStateWillChangeTo: flags=4 stateNumber=2
30/08/11 00:55:35,000 kernel /drv/ MacModule.cpp:266 powerStateWillChangeTo: found flag=kIOPMSleepCapability (4)
30/08/11 00:55:35,000 kernel 00000000 00000020 NVEthernet::setLinkStatus - not Active
30/08/11 00:55:35,000 kernel /drv/ MacModule.cpp:261 powerStateDidChangeTo: flags=4 stateNumber=2
30/08/11 00:55:35,000 kernel /drv/ MacModule.cpp:266 powerStateDidChangeTo: found flag=kIOPMSleepCapability (4)
30/08/11 00:55:40,000 kernel hibernate_page_list_setall start 0xffffff8065754000, 0xffffff8065773000
30/08/11 00:55:40,000 kernel hibernate_page_list_setall time: 266 ms
30/08/11 00:55:40,000 kernel pages 750299, wire 148505, act 47095, inact 127, spec 14, zf 1152, throt 0, could discard act 206280 inact 138290 purgeable 9074 spec 199762
30/08/11 00:55:40,000 kernel hibernate_page_list_setall found pageCount 196893
30/08/11 00:55:40,000 kernel IOHibernatePollerOpen, ml_get_interrupts_enabled 0
30/08/11 00:55:40,000 kernel IOHibernatePollerOpen(0)
30/08/11 00:55:40,000 kernel writing 195648 pages
30/08/11 00:55:40,000 kernel encryptStart 2e2d0
30/08/11 00:55:40,000 kernel encryptEnd 9242ae0
30/08/11 00:55:40,000 kernel image1Size 240834560, encryptStart1 2e2d0, End1 9242ae0
30/08/11 00:55:40,000 kernel encryptStart e5ad800
30/08/11 00:55:40,000 kernel encryptEnd 12e6eb40
30/08/11 00:55:40,000 kernel PMStats: Hibernate write took 3770 ms
30/08/11 00:55:40,000 kernel all time: 3770 ms, comp bytes: 801665024 time: 977 ms 782 Mb/s, crypt bytes: 229464912 time: 1404 ms 155 Mb/s,
30/08/11 00:55:40,000 kernel image 317123584, uncompressed 801665024 (195719), compressed 315122720 (39%), sum1 2aecdeef, sum2 45c654e9
30/08/11 00:55:40,000 kernel wired_pages_encrypted 94415, wired_pages_clear 52916, dirty_pages_encrypted 48388
30/08/11 00:55:40,000 kernel hibernate_write_image done(0)
30/08/11 00:55:40,000 kernel sleepI have found the cause of the automatic rebooting of my MacBook Pro. In fact it was not an automatic rebooting, but an automatic logging-out of the system.
In the security and privacy settings (beveiliging en privacy in Dutch), there is an option to automatic logout after a certain time of inactivity (log uit na een periode van xxx minuten).
This was selected and was put on 160mins. I don't know how this was set this way: did I do it one time myself or was it by default this way.
Because I get the same login-screen after display sleep, PC-sleep, and logging-out, I couldn't see a difference. -
Why does my iPod Nano (7g) automatically reboot while I'm using Nike fitness?
Yesterday I was running with my iPod 7g, I was using Nike finess and it automatically rebooted. Today same problem... Why?
It's possible I accidentally push Power off, but it's been two days! :/
Please Help meIs it one app, or every app? If one or two apps, try deleting them from iPad and then reinstalling them. Have you tried a complete restore to factory settings? Might be time consuming but you should try all options. If all else fails, head to the Apple store and let them see it.
Good luck. -
Automatic Reboot if no activity for 30-40 min.
Hello,
i have a problem with my PB. Ever since I have upgraded to 10.4 my computer automatically reboots if there is no activity (means if i don't type or surf on the web). Even iTunes continuously playing music is not stopping the computer to reboot.
I have already reset the PRAM/PMU, but it has not changed anything. Also checking permissions etc did not help. The only program holding the Mac back from reboot is the VLC player if I put it in repeat mode.
Does anyone has a suggestion what I can do? Should I reinstall 10.4 and then apply all patches until it is back on 10.4.4? Or ist there anything else I could do? If I need to reinstall the OS 10.4 what files should I back up to keep my iTunes, iPhoto, mails, etc. Just my "home" folder?
Thank you.
Regards,
Marco
Apple Powerbook 17" 1,67 Ghz Mac OS X (10.4.4)How did you reset the PMU? Are you aware that there is a internal battery?
Remove all power from the unit ( battery and DC power ) for 10 mins ( http://docs.info.apple.com/article.html?artnum=30017 ) and see if the issue continues. Also check what cron scripts are running, maybe running cocktail available on version tracker may resolves the issue. Good Luck -
Hi,
I have an Linksys RV042 Router (firmware 1.3.12.19-tm). The problem is, that our ISP has an forced disconnect every 24hours. Now it´s the question if it´s possible to scedule an automatic reboot in the RV042 setup? I don´t think so but maybe someone has a solution for me?
Thanks!
I 1.3.12.19-tm
1.3.12.19-tmHi,
No, it's not possible to schedule a power cycle with in the Web GUI of this unit. I have heard of customers going to lowes or home depot and getting a Timer that goes on the outlet and will cut off power and turn power back on. Which will cause a reboot. just a suggestion since you need a power cycle every 24 hours.
Thanks,
Jasbryan
Cisco Support Engineer
.:|:.:|:. -
[SOLVED] Script to automatically update source
Hello,i need a script to use in a pkgbuild that can
1)check this website http://fsinapsi.altervista.org/code/tre … 091228.zip for new version of the archive.
2)change the pkgver if a new version is found
3)download the archive
Maybe it's something like this (taken from the chromium pkgbuild),but i don't know how i can modify it .. thank you.
_bldname=chrome-linux.zip
_bldroot=http://build.chromium.org/buildbot/snapshots/${_bldarch}
source=('LICENSE.txt' 'chrome-wrapper.patch' "${_realname}.1.gz" "${_realname}.default"
"${_realname}.desktop" "${_realname}.sh")
noextract=(${_realname}.1.gz)
# trick re-determining the build revision and, or entertain the hidden
# makepkg option --forcever, huh
if [ -z "$FORCE_VER" ]; then
msg "Determining latest build revision..."
newpkgver="$(wget -qO - ${_bldroot}/LATEST)"
if [ -n "$newpkgver" -a "$newpkgver" != "$pkgver" ]; then
msg2 "Version found: %s" "$newpkgver"
FORCE_VER="$newpkgver"
else
FORCE_VER="$pkgver"
fi
fi
if [ "$FORCE_VER" = "LATEST" -a "$SOURCEONLY" -eq 0 ]; then
error "Plz omit '--forcever LATEST'; I'll auto-detect the LATEST ;)"
exit 1
elif [ "$FORCE_VER" != "$pkgver" ]; then
rm -f "$SRCDEST/${_bldname}"
devel_update
fi
build() {
if [ ! -r "$srcdir/${_bldname}" ]; then
msg2 "Downloading the latest '$CARCH/$pkgver/${_bldname}'..."
wget --no-cache -c "${_bldroot}/$pkgver/${_bldname}" \
-O "$SRCDEST/${_bldname}" || return $?
ln -fs "$SRCDEST/${_bldname}" "$srcdir/${_bldname}" || return $?
fi
Last edited by Xemertix (2010-01-01 18:30:04)Xemertix wrote:
tomk wrote:This is PKGBUILD abuse IMO.
Yes i know,but this archive is updated frequently and generally there aren't major changes in the new versions,so a pkgbuild with a similar script may work well for some time...
So would an external script which automatically updates the PKGBUILD on your machine and then uploads it to the AUR? Simplest I can think of would involve bash, wget/curl, and a bit of sed.
You could even run every X hours if you feel like it. -
Shell script to generate Statspack every 30 min
Hi ,
I am into the situation where I need to generate the statspack every 30 min. I want to automate this this task by writing the shell script, unfortunately i am poor in shell script
do anybody have script which can implemment this functionality , I am facing problem that when spreport is called then how it will automatically pick up if start snap ID and end snap ID which should for 30 min duration.
Any quick help shell be highly appreciated. Thanks in advance.
Regards
Amituser12098953 wrote:
Hi ,
I am into the situation where I need to generate the statspack every 30 min. I want to automate this this task by writing the shell script, unfortunately i am poor in shell script
do anybody have script which can implemment this functionality , I am facing problem that when spreport is called then how it will automatically pick up if start snap ID and end snap ID which should for 30 min duration.
Any quick help shell be highly appreciated. Thanks in advance.
Regards
Amitdo you realize that "shell script" is Operating System (OS) dependent?
Since you decided not to share your OS name & version, no answer is possible now. -
ipod 4 is displaying blue frozen screen and black screen with apple logo. I try to turn power off but as soon as it goes out it automatically reboots. Plugged it into the usb port on my mac and it doesnt do anything. It doesnt appear in Itunes. Help?
Let the battery fully darain. After charging for an least an hour try a reset and restore. Use Recovery mode if necessary.
If not successful, then time for an appointment at the Genius Bar of an Apple store. -
Using script to automatically arrange timeline and sceneline workspaces.
This is a simple demonstration of using VB Script to adjust panels in PE3.
In PE3, when you adjust the height of the timeline, the height of the sceneline is also adjusted the same amount, and vice versa. You could use script to automatically adjust the height of the sceneline or the timeline whenever you switch respective modes. The script below does that.
This is for those who are familiar with script writing and the Windows Script Host. The vb script below includes properties and methods from the AutoItX library (free download).
Option Explicit
Dim oAutoit, strWinText, strLastTime, lngX, lngY
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
oAutoit.WinWaitActive "Adobe Premiere Elements -"
strLastTime = "start"
Do
' Quit the script if mousepointer put in upper left corner (0,0).
lngX = oAutoIt.MouseGetPosX
lngY = oAutoIt.MouseGetPosY
if lngX = 0 and lngY = 0 then
set oAutoIt = nothing
Wscript.Echo "Your script has ended."
Wscript.Quit
end if
' Read the text of the window so we can determine the workspace setup.
strWinText = oAutoIt.WinGetText("Adobe Premiere Elements -")
' If DVD Menu tab selected, then don't do anything, otherwise
' check if in Sceneline or Timeline mode.
if instr(strWinText, "DVD Menu") = 0 then
if instr(strWinText,"EditTimeControl") <> 0 then
if strLastTime <> "timeline" then
' Reset the Edit Workspace and then adjust the timeline panel height
oAutoit.Send "{alt}wke"
oAutoit.Sleep 250
oAutoit.MouseMove 1078, 646
oAutoit.MouseDown "left"
oAutoit.MouseMove 1078,400
oAutoit.MouseUp "left"
strLastTime = "timeline"
end if
else
if strLastTime <> "sceneline" then
' Reset the Edit Workspace and then adjust the sceneline panel height.
oAutoit.Send "{alt}wke"
oAutoit.Sleep 250
oAutoit.MouseMove 1078, 646
oAutoit.MouseDown "left"
oAutoit.MouseMove 1078,762
oAutoit.MouseUp "left"
strLastTime = "sceneline"
end if
end if
end if
WScript.Sleep 2000
loop
The script might work as-is if your screen is set for 1280 x 1024 and the Premiere Elements 3 window is maximized. Save the script in a text file with a .VBS extension, and then run it. Afterwards click on the Sceneline or Timeline buttons in PE3. It may take up to 2 seconds before the mouse starts moving on it's own. The screen coordinates were ascertained using the AutoIt Info tool.You shouldn't make assumptions about what the names of the volumes are - both the Finder and System Events have terminology to determine if a disk is the startup volume (or a local volume, for that matter), for example:
tell application "System Events"
repeat with someDisk in (get disks whose startup is false and local volume is true)
set someDisk to POSIX path of someDisk
do shell script "diskutil umount " & quoted form of someDisk & " &> /dev/null &"
end repeat
end tell
Note that if you are unmounting a disk from a standard account you will be prompted for administrator authentication. -
Script to automate the display language on windows server
Hi,
I'm looking for a script which should change the windows display language from non-english to english (vizversa).
Here is the scenario:
On windows server 2008 R2 I have two language installed - Japanese and English with the help of MUI packs available on microsoft site. The native language of windows server 2008 R2 is Japanese. Consider there are 10 sys admins only knows
Japanese but not english. Similarly there are 10 sys admins knowing only English. I being english administrator, i should each time go to regional setting in the control panel and click on change display language to english. After
I finish my task I need to set back the language to japanese(native).
I'm looking for script which can auotmate this process.
Objective:
The script should automatical change the language to Japanese when I logoff from the system.
Here is the steps to reach "Change Display language" on windows server 2008
Go to control Panel > Category view (on right side top ) > System and Security > Clock ,Language and Region > Under “Regional Language” > Change display
language > Go to Tab “Keyboards and Languages” > Look for the dropdown menu “Choose a display language” and choose the appropriate language you prefer from the dropdown list
Kindly note this menu/option is available for Vista,Windows 7 and Windows Server 2008. This option is also available on Windows XP/Server 2000/2003 provided the LIP/MUI is installed.
Thanks
EzakialHi,
I'm looking for a script which should change the windows display language from non-english to english (vizversa).
Here is the scenario:
On windows server 2008 R2 I have two language installed - Japanese and English...
Thanks
Ezakial
Guys,
Forgive me, but I think you are making this far too complicated. Using a script to achieve this is, in my view the wrong tool, and a little dangerous. If your logoff script fails to run for any reason, 11 Japanese sysadmins will be waving Samurai swords
at you :-).
There is a single Group Policy setting that will do exactly what you want on Vista, W7, W2K8 & R2.
Create a new Group Policy object ("English_interface", for example.
Edit the new policy object
Drill down to "User Configuration, Policies, Administrative Templates, Control Panel, Regional and Language Options"
Pick the setting "Restricts the UI languages Windows should use for the selected user" and Enable it.
Drop down the "Restrict users to the following language" and pick "English"
Click "OK"
Link your new GPO somewhere in the OU hierarchy that contains the English user
If other (Japanese?) users are also in the same container, you can filter application of the GPO by security group so that the policy can only be read and applied by the English group.
That's all you need to do!
As a point of principle. I ALWAYS install my OS in US English then add languages, and set the locals to use their own language. This is because service packs and hotfixes invariably arrive for US English first, and some hot fixes are NEVER translated.
I'm just doing this for a single W7 build in English, to be deployed in 6 countries, with 7 different languages and 9 different keyboard layouts. Fun...
Come back if you need more help. I volunteer to visit and help if you want!
Richard
MCSE, MCITP, MCT etc.
Switzerland
RS -
HI,
I am looking for a way where I put the SX50HS on a tripod and now want her to automatically make a picture every 3 minutes for an hour. Is there a way to achieve this ? Have not found a hint in the manual. Would be great if that could work !
thanks
martinGreat Guys, Thank you ! Both contributions were helpful.
I found a hint about an automatic shutter release Phottix TR-90 that may so the job, however the longest is 59 sec. seamingly to avoid the camera lens to go still.
Then the hint with you tube indicates a way to use CHDK to eventually still be able to do the job right the way.
Am happy about your insirtaions. Thank you ! -
Using a script to automate UNC definition updates for FEP 2010
Hi all,
I tested the script mentioned in this article
http://blogs.technet.com/b/clientsecurity/archive/2010/09/16/using-a-script-to-automate-unc-definition-updates.aspx with no success. I am getting the following error:
Line: 11
Char: 5
Error: The operation timed out
Code: 80072EE2
Source: WinHttp.WinHttpRequest
the script content is as follows:
strMSEx86URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x86"
strMSEx86Location = "D:\defs\Updates\x86\mpam-fe.exe"
strNISX86URL = "http://go.microsoft.com/fwlink/?LinkId=197095"
strNISX86Location = "D:\defs\Updates\x86\nis_full.exe"
strMSEx64URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x64"
strMSEx64Location = "D:\defs\Updates\x64\mpam-fe.exe"
strNISX64URL = "http://go.microsoft.com/fwlink/?LinkId=197094"
strNISX64Location = "D:\defs\Updates\x64\nis_full.exe"
Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
objWINHTTP.open "GET", strMSEx86URL, false
objWINHTTP.send
If objWINHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objWINHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to the Start
Set objFSO = Createobject("Scripting.FileSystemObject")
'check if file exists if so delete
If objFSO.Fileexists(strMSEx86Location) Then objFSO.DeleteFile strMSEx86Location
objADOStream.SaveToFile strMSEx86Location
objADOStream.Close
end if
Anybody can help?This is the script that I use and it works:
strMSEx86URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x86"
strMSEx86Location = "C:\defs\Updates\x86\mpam-fe.exe"
strNISX86URL = "http://download.microsoft.com/download/DefinitionUpdates/x86/nis_full.exe"
strNISX86Location = "C:\defs\Updates\x86\nis_full.exe"
strMSEx64URL = "http://go.microsoft.com/fwlink/?LinkID=121721&clcid=0x409&arch=x64"
strMSEx64Location = "C:\defs\Updates\x64\mpam-fe.exe"
strNISX64URL = "http://download.microsoft.com/download/DefinitionUpdates/amd64/nis_full.exe"
strNISX64Location = "C:\defs\Updates\x64\nis_full.exe"
Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
objWINHTTP.open "GET", strMSEx86URL, false
objWINHTTP.send
If objWINHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objWINHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to
Set objFSO = Createobject("Scripting.FileSystemObject")
'check if file exists if so delete
If objFSO.Fileexists(strMSEx86Location) Then objFSO.DeleteFile(strMSEx86Location)
objADOStream.SaveToFile strMSEx86Location
objADOStream.Close
End IF
Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
objWINHTTP.open "GET", strNISx86URL, false
objWINHTTP.send
If objWINHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objWINHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to
Set objFSO = Createobject("Scripting.FileSystemObject")
'check if file exists if so delete
If objFSO.Fileexists(strNISx86Location) Then objFSO.DeleteFile (strNISx86Location)
objADOStream.SaveToFile strNISx86Location
objADOStream.Close
END IF
Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
objWINHTTP.open "GET", strNISx64URL, false
objWINHTTP.send
If objWINHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objWINHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to
Set objFSO = Createobject("Scripting.FileSystemObject")
'check if file exists if so delete
If objFSO.Fileexists(strNISx64Location) Then objFSO.DeleteFile (strNISx64Location)
objADOStream.SaveToFile strNISx64Location
objADOStream.Close
END IF
Set objWINHTTP = CreateObject("WinHttp.WinHttpRequest.5.1")
objWINHTTP.open "GET", strMSEx64URL, false
objWINHTTP.send
If objWINHTTP.Status = 200 Then
Set objADOStream = CreateObject("ADODB.Stream")
objADOStream.Open
objADOStream.Type = 1 'adTypeBinary
objADOStream.Write objWINHTTP.ResponseBody
objADOStream.Position = 0 'Set the stream position to
Set objFSO = Createobject("Scripting.FileSystemObject")
'check if file exists if so delete
If objFSO.Fileexists(strMSEx64Location) Then objFSO.DeleteFile(strMSEx64Location)
objADOStream.SaveToFile strMSEx64Location
objADOStream.Close
END IF -
iphone 5 ios 7.0.3 automatic reboot show apple logo when i enter wrong password 2 time .
please have me any idea ?
thanksrecovery mode
open itunes on computer
plug cable into computer not iOS device
turn phone off
hold home button and plug cable into phone. do not release home button until an itunes graphic appears on device.
look to computer should have message about recovery mode click ok and restore
Peace, Clyde
if u need an article see
http://support.apple.com/kb/HT1808
Maybe you are looking for
-
How to check LIV made for a partner vendor in Schedule agreement or P.O.?
I have defined partner vendor in schedule agreement and made LIV for a different vendor during MIRO. I need to check this in system. What is the procedure for viewing LIV made for a partner vendor with all these details like LIV no, Amount,partner Ve
-
Nokia Music 2.0 released under Nokia Apps in India...
Hi, Today I downloaded Nokia Music 2.0 from Market, buy it's not working on my Lumia 800, showing following message. My phone is unlocked, so I took following screenshot. Error: https://dl.dropbox.com/s/lmorne5ezf0g8vl/m2.jpg Available on Market: htt
-
Standby database SRL & Online logs
Hi, I have just tried my hand at building a Physical standby database in Oracle 10gR2 using RMAN. I will detail out the steps that i have performed before asking my question. I configured every pre-requisite and i did not create any SRL's on primary
-
Hopefully this will be my last dumb question. I disabled the previews stuff and now the program runs much better, but still not as smooth as expected. One question I have is, when I am in the layout mode (altcmdb) - the one where it gives you all the
-
I can not get my Creative Cloud to launch and Adobe will NOT help me as it is the trial version
I have the trial version of Creative Cloud. I was able to launch at time of down load but can not now. I have tried several times to get tech support from Adobe. They are now telling me because it is the trial version they can't help me. Really??