can't run script

The Coldest

New member
Local time
6:15 PM
Messages
38
Having a problem run this script

at 1am /every:Friday c:\windows\shutdown.exe /l

when I run it a black screen pop up and then disappears so I know the script is running but nothing is happen. I have ran it from the command line and it say access denial but I am in the local administrator group. I even put the domain users in the administrator group and still access denial. I have also turn off the UAC. Any ideals guys.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 64 bit
CPU
AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ 3.00 GHz
Motherboard
Gigabyte GA-MA78G-DS3H (Socket M2)
Memory
4.00 GB Dual-Channel DDR2 @ 376MHz
Graphics Card(s)
mobile intel r 965 express chipset family
Hard Drives
465GB Seagate (SATA)
465GB Seagate (SATA)
931GB Western Digital (SATA)
931GB Western Digital (SATA)
Keyboard
Logitech G15
Mouse
Logitech MX 518
Antivirus
MSE
Browser
Chrome
What kind of script is this?

-l = logoff user.

What is the top line of your script?

At the command prompt:

/t xxx Set the time-out period before shutdown to xxx seconds.
The valid range is 0-315360000 (10 years), with a default of 30.
If the timeout period is greater than 0, the /f parameter is
implied.

I'll leave the math up to you.

Or maybe there's a way to do it in Task Schedular.......

Forget the above you can do it in task Scheduler by creating a new task, if you have the script correct.
 

My Computer

Computer Manufacturer/Model Number
Cheap $399.00 E-Machine
OS
Windows 7 Pro & Vista Home Premium
CPU
Athlon 64 3800+ (Orleans) 2.40GHz
Motherboard
Winfast
Memory
2GB DDR2 RAM DIMM
Graphics Card(s)
NVIDIA GeForce 8500 GT 512 MB memory HDMI out
Sound Card
creative X-Fi Exteme 7..1 channel
Monitor(s) Displays
Acer V223W 22" widescreen DVI
Screen Resolution
1680x1050
Hard Drives
WDC WD5 500GB
WDC WD25 250GB
PSU
OCZ 550 watt
Case
Gateway
Cooling
2 fans
Keyboard
Dell
Mouse
Sony Vaio
Internet Speed
18MB/s down - .72MB /s up
it create it in the task scheduler and tell window to shutdown

at(task scheduler) 1am (time 1:00am) /every:Friday(date every friday) c:\windows\shutdown.exe(shutdown window) /l(local users)

But, the script is not the problem, because I tried other script that work in xp but they won't work in window 7. I would think it would be a rights problem. and I know I can do it from the task scheduler but I am lazy and don't want to do a 1000 or so computer individual.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 64 bit
CPU
AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ 3.00 GHz
Motherboard
Gigabyte GA-MA78G-DS3H (Socket M2)
Memory
4.00 GB Dual-Channel DDR2 @ 376MHz
Graphics Card(s)
mobile intel r 965 express chipset family
Hard Drives
465GB Seagate (SATA)
465GB Seagate (SATA)
931GB Western Digital (SATA)
931GB Western Digital (SATA)
Keyboard
Logitech G15
Mouse
Logitech MX 518
Antivirus
MSE
Browser
Chrome

My Computer

Computer Manufacturer/Model Number
Cheap $399.00 E-Machine
OS
Windows 7 Pro & Vista Home Premium
CPU
Athlon 64 3800+ (Orleans) 2.40GHz
Motherboard
Winfast
Memory
2GB DDR2 RAM DIMM
Graphics Card(s)
NVIDIA GeForce 8500 GT 512 MB memory HDMI out
Sound Card
creative X-Fi Exteme 7..1 channel
Monitor(s) Displays
Acer V223W 22" widescreen DVI
Screen Resolution
1680x1050
Hard Drives
WDC WD5 500GB
WDC WD25 250GB
PSU
OCZ 550 watt
Case
Gateway
Cooling
2 fans
Keyboard
Dell
Mouse
Sony Vaio
Internet Speed
18MB/s down - .72MB /s up
I am still getting access denial.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 64 bit
CPU
AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ 3.00 GHz
Motherboard
Gigabyte GA-MA78G-DS3H (Socket M2)
Memory
4.00 GB Dual-Channel DDR2 @ 376MHz
Graphics Card(s)
mobile intel r 965 express chipset family
Hard Drives
465GB Seagate (SATA)
465GB Seagate (SATA)
931GB Western Digital (SATA)
931GB Western Digital (SATA)
Keyboard
Logitech G15
Mouse
Logitech MX 518
Antivirus
MSE
Browser
Chrome
I'm not sure about your code, but try this code just to see if it works.

It's just a 2 second shutdown delay.

Create a new shortcut (right click desktop window and choose create shortcut) Browse to desktop and then when you choose next name it Shutdown. When finished right click the shortcut and type in target window C:\WINDOWS\system32\shutdown.exe -s -f -t 02 -c "Shutdown 2 seconds!!" Clic the shortcut so we can see at least if machine responds to command.
 

My Computer

Computer Manufacturer/Model Number
Asus
OS
Windows 7 x64 Ultimate SP1
CPU
I5 875K Unlocked
Motherboard
P7P55D-E-PRO
Memory
Kingston HyperX Genesis DDR3-1600MHz 9-9-9-27 @ 1.65V XMP
Graphics Card(s)
EVGA GeForce GTX 570 HD 732 MHz GPU 1280 MB, 152 GB Mem
Sound Card
Onboard Via 1828S
Monitor(s) Displays
Samsung T240 HD
Screen Resolution
Dual 1920X1200 1027X768
Hard Drives
OCZ Vertex II Extended Sandforce SSD 60 Gig 2X WD Black Caviar 1 terabyte 6GBS Transer Sata 3 Marvell Chip
PSU
Corsair Gold fully Modular 80 Plus 850
Case
Coolermaster Half X Full Tower
Cooling
Noctua NH-U12P
Keyboard
MS
Mouse
MS
Internet Speed
Fast enough
Other Info
My fridge has a water tap
I figure it out. You have to turn the UAC all the way off and restart your computer. :D
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 64 bit
CPU
AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ 3.00 GHz
Motherboard
Gigabyte GA-MA78G-DS3H (Socket M2)
Memory
4.00 GB Dual-Channel DDR2 @ 376MHz
Graphics Card(s)
mobile intel r 965 express chipset family
Hard Drives
465GB Seagate (SATA)
465GB Seagate (SATA)
931GB Western Digital (SATA)
931GB Western Digital (SATA)
Keyboard
Logitech G15
Mouse
Logitech MX 518
Antivirus
MSE
Browser
Chrome
I don't :rolleyes:
 

My Computer

Computer Manufacturer/Model Number
Asus
OS
Windows 7 x64 Ultimate SP1
CPU
I5 875K Unlocked
Motherboard
P7P55D-E-PRO
Memory
Kingston HyperX Genesis DDR3-1600MHz 9-9-9-27 @ 1.65V XMP
Graphics Card(s)
EVGA GeForce GTX 570 HD 732 MHz GPU 1280 MB, 152 GB Mem
Sound Card
Onboard Via 1828S
Monitor(s) Displays
Samsung T240 HD
Screen Resolution
Dual 1920X1200 1027X768
Hard Drives
OCZ Vertex II Extended Sandforce SSD 60 Gig 2X WD Black Caviar 1 terabyte 6GBS Transer Sata 3 Marvell Chip
PSU
Corsair Gold fully Modular 80 Plus 850
Case
Coolermaster Half X Full Tower
Cooling
Noctua NH-U12P
Keyboard
MS
Mouse
MS
Internet Speed
Fast enough
Other Info
My fridge has a water tap
probably because your computer is not join to a domain.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom build
OS
Windows 7 64 bit
CPU
AMD Athlon(tm) 64 X2 Dual Core Processor 6000+ 3.00 GHz
Motherboard
Gigabyte GA-MA78G-DS3H (Socket M2)
Memory
4.00 GB Dual-Channel DDR2 @ 376MHz
Graphics Card(s)
mobile intel r 965 express chipset family
Hard Drives
465GB Seagate (SATA)
465GB Seagate (SATA)
931GB Western Digital (SATA)
931GB Western Digital (SATA)
Keyboard
Logitech G15
Mouse
Logitech MX 518
Antivirus
MSE
Browser
Chrome
Back
Top