Over 1 million tech questions and answers.

Script to change power settings

Q: Script to change power settings

Greetings,

I am attempting to temporarily disable hibernate and make sure the monitor doesn't go off while I am running a script to complete system configuration.


Code:
control powercfg.cpl -monitor-timeout-ac 30
control powercfg.cpl -monitor-timeout-dc 30
control powercfg.cpl /hibernate off
I believe the code above should work, but what's happening is the control panel applet for power settings is launching when this script runs.

Can someone help me make this so that:
The control panel applet doesn't launch
The settings are only made for the current logged on user

I also would appreciate knowing how to revert the setting changes I made at the end of my script

Thanks!

RELEVANCY SCORE 200
Preferred Solution: Script to change power settings

I recommend downloading and running Reimage. It's a computer repair tool that has been proven to identify and fix many Windows problems with a high level of success.

I've used it in the past to identify and fix everything from blue screens (BSOD's), ActiveX errors, corrupt files and processes, dll/exe/sys errors, recover lost memory, Windows update problems, defragging, malware removal etc.

You can download it direct from this link http://downloadreimage.com/download.php. (This link will automatically start a download of Reimage that you can save to your computer.)

A: Script to change power settings

Well you are calling on the .cpl so it is going to open.
Have you tried using the old powercfg.exe method instead?
I don't believe it opens a window on execution
Just go into command window and type powercfg.exe /?
for the list of switches for it.

Read other 2 answers
RELEVANCY SCORE 66.8

Hi all,

I'm in need of an example script that i can change accordingly to my working environment.

I'm currently working at four different locations and move my laptop around with me all of the time. The problem is that in each of my locations i require a different proxy address and port or when at home, none. I'm now fed up with opening up internet explorer and changing the settings manually each time i move location.

Whether this is possible or not i am unsure but what i would like to achieve is four icons on my desktop each called the working location ie home.vbs workplaceone.vbs and so on. I would then be able to double click on these and that would invoke a change to my proxy settings inside IE.

So for each of my work places i would need the following two boxes checked,

'Use a proxy server for your LAN (these settings will not apply to dial-up or VPN Connections)'
'Bypass proxy server for local addresses'
I Would then need to enter my proxy address and port number.

The home settings would need to remove both of the above boxes.

Does anyone have any example scripts i could manipulate accordingly?

Thanking in advanced,

Regards,

Sprite
 

A:Script to change proxy settings

Read other 8 answers
RELEVANCY SCORE 66.8

Hey all, have a question about writing some piece of code that would allow me to double click something on the desktop that would quickly change my sound output settings from Realtek AC97 Audio to UAC3553B, and back the other way when I click it again. I frequently switch over my audio basically from my PC speakers to my USB Stereo, and am just trying to find a faster way to do this without having to manually open my control panel settings each time. I don't have any previous scripting experience in windows (I do, however, have extensive VBA programming experience in Excel!), so any help is MUCH appreciated!

Thanks in advance!

A:Script to change sound settings

Just bumping this up, hoping someone has an idea.

Read other 13 answers
RELEVANCY SCORE 66.8

would it be possible to change proxy setting by windows script..?
 

Read other answers
RELEVANCY SCORE 66.8

Hi,

We are about to roll out Microsoft BDD, but when the OS installs, it sets the language settings as US. This doesnt really help as we are in the UK.
Is there a way that I can script it so I can run that script as a program at first boot up?

Thanks!

Read other answers
RELEVANCY SCORE 66

Hello, we are running a 2012 server. We are on a domain. We recently received notification that advanced settings in IE need to be updated specifically in order to use their website. And something to do with a SSL. Is there a way to change all IE settings on all of the computers connected to our network/domain so that I do not have to manually go to 300 computers? I haven't ever written a script but I am sure if explained, I could do so. There just has to be a way to mass change settings without physically going to each and every machine, right?

Or would this be along the lines of a GPO? Again, not something that I am familiar with so any information would be great!

A:Can a script be written to change all IE settings across a network?

Hi,
I have no idea but the settings in question are posted here,
IE 11 'This page can't be displayed... Turn on TLS 1.0...'

Sounds like your using ie11 and windows updates should take care of disabling ssl's on each machine for you
Cheers.

Read other 9 answers
RELEVANCY SCORE 65.2

Morning, afternoon and or evening ladies and gentlemen.

Glad to be a part of the forums.

As the title of the thread implies, I would like some help in creating a script or scripts to change a few settings in windows instantaneously with a single keystroke, command or perhaps using specific program.

To elaborate, I am running my main monitor for my rig at my computer desk, and also have an additional 42'' HDTV at the end of my bed which is connected to my PC via a HDMI cable. After work for instance, if i'm not in the mood to game at my desk, I like to lay in bed with a wireless keyboard and mouse and chill out. However, what annoys me about this is that when I use this TV, to be able to see the screen properly I must change the resolution to 1280 x 800, also I have to change my sound output to the TV, and lastly I have to crank up the track speed of the built in track pad on my wireless keyboard or else it's really really slow and frustrating.

Essentially, what I want to know is, is there a way that I can set up a script or use some sort of program that will allow me to change all of these setting instantaneously with the press of a key? Is this possible?

Would appreciate some help on this, thank you in advance.

Windows 7 Professional 64 bit
Intel i5-4670k
Asus H87 Pro Motherboard 1150 socket
8 GB Corsair Vengeance DDR3 1600Mhz
Gigabyte Windforce GTX 670 3GB GDDR5
2 x Samsung Evo 840 240GB
Corsair H50 SE Liquid Cooling

A:Help needed in creating a script to change certain Windows 7 settings

How to Activate GodMode in Windows 7

If it has all the settings then perhaps you can use Autohotkey to click what you need.

Read other 5 answers
RELEVANCY SCORE 65.2

Was wondering if anyone can help us solve a logon issue?

Our corporate logon script written in VBScript is designed to write Internet Proxy values to the users HKCU registry hive depending on the physical location of the PC being logged into. We have a number of users that travel between offices and the logon script is not able to write these registry key values to the registry like it does on everyone else in the company.

Today while one of these users was in we replaced his NTUSER.DAT file to rule out the profile but this solved nothing. We then cloned a new account from his existing account. Dispite the fact that the old account always fails, the new account worked flawlessly. Same groups same access, etc. The only differences that we can come up with is the fact that the old logonid has SID history carried over from when his account was migrated from their legacy NT domain to our new Active Directory domain. If I'm not mistaken the SID history would not carry over to the clone even though the permissions did.

So, what I would like to understand is why the new account works great and the old one fails? If it does happen to have something to do with SID history what is it that is causing the regwrites to fail and how would one fix this problem?

Any help would be appreciated.
 

A:Logon script cannot change HKCU settings in registry

Hi wchull, my bet is that you have enabled FolderRedirection for the first account - probably with a GPO. This is a known problem when applying IE proxy settings. First get your user to LOGOFF then LOGON (NOT ShutDown>Restart) do the new settings then appear? GPOs applied to the user won't make it to the Registry hive unless you give the User time to instantiate and later save the results, so when they do appear a second LOGOFF will save them to the profile.

Are you using roaming profiles?

wchull said:

Was wondering if anyone can help us solve a logon issue?

Our corporate logon script written in VBScript is designed to write Internet Proxy values to the users HKCU registry hive depending on the physical location of the PC being logged into. We have a number of users that travel between offices and the logon script is not able to write these registry key values to the registry like it does on everyone else in the company.

Today while one of these users was in we replaced his NTUSER.DAT file to rule out the profile but this solved nothing. We then cloned a new account from his existing account. Dispite the fact that the old account always fails, the new account worked flawlessly. Same groups same access, etc. The only differences that we can come up with is the fact that the old logonid has SID history carried over from when his account was migrated from their legacy NT domain to our new Active Directory domain. If I'm not mistaken the SID history would not ... Read more

Read other 1 answers
RELEVANCY SCORE 64.8

Hi everyone, thanks for looking.
Im running into a particular problem that I cant seem to find the reasons or the settings.

I watch HBO GO (i have a valid subscription) on my Windows 7 Home laptop and use an HDMI cable to connect my TV.

Scenerio 1:
If I leave the close the lid power option on hibernate, I must leave the laptop open and, when I connect the HDMI the TV, it becomes my monitor and I view as the monitor and watch anything full screen no problem.

Scenerio 2:
I change the power option on the lid close to "do nothing". When the HDMI cable is hooked up, if the laptop is open it uses the laptop display, if its closed it displays through the HDMI/TV. This is perfect and exactly what I want.
I can watch as the monitor no problem HOWEVER, if I choose full screen, I get gray borders and the "Full Screen" is not full and just centered.

I can not for the life of me figure out why and Im going crazy.
Does anyone know why the power option would have an effect on this and what settings I could change?

Many Thanks in Advance!!!

Max
 

A:External display settings change when Power options change?

Check to see what resolution your laptop's display is at, what the external TV resolution is when you connect it to your laptop, and MAYBE what resolution the videos you're watching are. This just sounds like a resolution issue. If the TV is at a larger resolution than your laptop's resolution, change the TV's resolution to the size your laptop is at. Then try watching a video to see what happens. Hope this helps.
-Lance
 

Read other 2 answers
RELEVANCY SCORE 64

This is a computer I have put together which was running Windows 7 and has been upgraded and running Windows 8 for two weeks with no problems. When I went to review the advanced power settings nothing happens when I click on the link for change advanced power settings. You can see the screen flash very quickly but the power options dialogue does not appear. Any idea what applet runs this dialogue so I might try running it manually? Any ideas on troubleshooting this? Thanks for any insight.

A:Cannot Oplen Power Change Advanced Power Settings Link

Just to be clear, have you tried it via Control Panel> Power Options> Change Plan Settings (link)> Change Advanced Power Settings (link)>

Read other 9 answers
RELEVANCY SCORE 62.8

What I am trying to do is find or create a script or batch file that changes the "When I press the power button on my computer" option - to always be set to Shut down - this is under the Power Options Properties Advanced tab.

What we are looking to do is push out this to several laptops to ensure when the power button is pushed it shuts down and does not go into standby.

My question is does anyone know of a script or registry edit that I can do to accomplish this as the company is running Server 2003 which does not offer a group policy setting or template and powercfg does not have this option.

I've read that I can use a program like regshot to look for the changes in the registry but it appears that the system when changing between "standby" and "shutdown" changes some binary and hexidecimal settings all of which I would like to try to avoid editing if possible.
Any help would be appreciated.

Thank you for your time.
 

Read other answers
RELEVANCY SCORE 60.8

Hi. I had previously set my system to "Do nothing" when I physically press the power button, to avoid accidental manual shutdown. Well I was doing something and accidentaly pressed the button. The computer shutdown. I checked again under power settings, and the "Do nothing" option was indeed selected.

Any ideas?

A:Power settings don't really change anything?

I think the Power settings option applies only to the Start menu power button, not to the keyboard/ Tower physical button. Try remapping the power key to something non-functional with Sharpkeys.

Map Any Key to Any Key on Windows 7 / XP / Vista - How-To Geek

Read other 6 answers
RELEVANCY SCORE 60.8

I have a power setting for battery and for plugged in power. I dont want standby when I'm plugged in. Whenever the battery is unplugged, the settings go automatically to the battery settings, but when I plug the power back in the settings don't change back to my plugged in power settings (the settings that have no standby). Also, whenever I come out of standby my resolution is off. The clock reads of the screen and the only way to fix it is to turn res down and back up again.

A:Power Settings Always Change

I assume this is a laptop you are talking about ... what is the make/model? Are you using the windows power management or are you using third party software that came installed on the computer to manage your power settings?

Read other 9 answers
RELEVANCY SCORE 60.8

I recently changed my power settings for the screen to go blank after 1 minute while everything else was set to never while burning a DVD. Now I can't get it to change back. I go through the power settings and it looks like everything is working, but after 1 minute of no keyboard or mouse activity, my screen goes black. My system is a Gateway, OS Win XP Pro w/ SP2, 2GB RAM, NVIDIA GeForce 6600 LE (128 MB), Monitor SONY SDM-HX73 DVI digital. Not sure how much of that might be relevant, but hope I included any information that you might need.Someone else recommended I try the following http://www.kellys-korner-xp.com/regs_edits...rcfgrestore.reg, which I did to no avail.Any suggestions would be greatly appreciated.Peg

A:Can't Change Power Settings

I'm guessing that you are using the Power Options in the Control Panel. After setting the changes that you want, you are clicking on Apply and then OK?

Read other 4 answers
RELEVANCY SCORE 60

Hi, I have been having some issues changing the power settings on my Dell desktop running Windows 7 Ultimate. When i go into Control Panel and then into Power settings all i get is a little red circle with a x in it. Any ideas?
Untitled | Flickr - Photo Sharing!

A:Unable to change Power settings

Have you tried booting in Safe Mode?

Read other 5 answers
RELEVANCY SCORE 60

I am unable to change my power settings. I tried to change to default and when I try to close out of the window it only gives me the "cancel" option highlighted, save is there but can't click on it. I am logged on as admin. I hve had this happen on some other things as well.

Read other answers
RELEVANCY SCORE 59.2

Hi,

I use a Vista Enterprise Laptop for work, of which I am in the administrator group and can Install/Remove Programs and do just about averything else other than the Power settings.....

I want to remove my password login after resuming, but this is greyed out and it says some settings are controlled by the system administrator, but yet I am listed as administrator?
Also I I try to access gpedit.msc, it says I may not have access rights?

Please help

Ron

A:Unable to change power settings as Administrator

Hi ronvegas

You may be an administrator, but you are not the system administrator, have a word with your system administrator.

Read other 2 answers
RELEVANCY SCORE 59.2

Assuming I am using the correct terminology in my question but knowing that I am possibly talking about something else I will explain. Having done a fresh install of Win7 HomePrem I noticed that when I click on a drive I have to wake it up--it doesn't open immediately and I could here it begin to hum. Prior to my reinstalletion I did not have to do this--clicking on any drive would pop up a window immediately. Then I recalled that I had done this manually and I think it was through the 'Power Options' --> Advanced Settings --> Hard Disk --> Turn off hard disks after... Am I correct in this? That this is how I prevent my disk from going to sleep/turning off? by setting it at 0 or 999 minutes. Assuming not then how do I do so. Assuming yes, then is there a way to do so only for one HD? I have 4 (where my OS sits and 3 others). I do not like to wait every time I want to open a folder in a drive I am not presently using and since this drive mainly happens to be the D: drive and not my E: or F: drive (hardly used) I was hoping I could be specific.

A:Is it possible to change the power settings specific to 1 drive only

If any, such an option should be in the disk properties in Device Manager. But I don't see such an option.

Read other 9 answers
RELEVANCY SCORE 59.2

Hi is there anyway to automatically switch power setting based on my location. Say if I'm connected to my home network be in high performance mode. Or perhaps a program that does this? If not does anyone know how I might go about creating one ( I'm a computer science student) thanks, Laurie

A:change power settings based on location

No, i do not think that there is a way to do that.

Read other 3 answers
RELEVANCY SCORE 59.2

Say you want the computer automatically to go into Power Saver mode at night, High Performance during 9-5pm hours, and then Balanced at other times. Is there a way to do this?

It might be doable using task scheduler and the powercfg command, but the main issue with that is if you computer is sleeping, it probably won't execute the command to take it out of sleep.

Send me your ideas and comments.

A:Change power settings based on a schedule?

if your computer is sleeping, then I dont think it matters which power mode it is in. Otherwise, this is a good Idea and I am interested as well if anyone finds a setup.

Read other 1 answers
RELEVANCY SCORE 59.2

I have already clicked "Change settings that are currently available" but it still does not show it, restarted the PC and still same result.
MSE disabled
Windows 7 Starter 32-bit
Power Plan: High Performance
System Model: HP Mini 110-3500

A:Cannot see Multimedia Settings under "Change advanced power settings"

Please help.

Read other 6 answers
RELEVANCY SCORE 58.8

Just curious if anyone knows of a quick way to change the power settings and/or screen saver without having to right click on desktop and choose properties. It's not that it's that hard to do it this way, but I was curious if there was some utility or batch file that could be created to quickly switch between settings.
 

A:Quickly Change Power Settings & Screen Saver

Bueller? Bueller? Anyone?
 

Read other 3 answers
RELEVANCY SCORE 58.8

My office computer has been set with preference power plan in domain environment, which put the machine to sleep in 1 hour. however I need to connect to the office computer with remote desktop, which means I need to keep this machine awake all the
time, how could I change the settings? as currently, whatever I changes the power option, it always go back to the customized power plan set by office.

Read other answers
RELEVANCY SCORE 49.2

Hi, so I just got my new Yoga 910, and wanted to change the settings so the F keys are default and me not needing to press Fn. I found a lot of posts on the forum, where people got it working by having the latest BIOS and Lenovo Settings app from the store. I have the exact same installed, latest bios and settings app. But my input setting screen is just empty, it shows three loading spinners when loading the inputs setting page, but then just goes empty. See attached screenshot.    Anyone else experiencing this? I have updated Windows and all the drivers, also tried uninstalling the settings app and reinstalling, but that did not help either. Hope someone can help.. -- Christian


























lenovo-settings-input-empty.PNG ?31 KB

Read other answers
RELEVANCY SCORE 49.2

There is a software which often changes the proxy settings so I decided to config the internet settings registry right to reject the proxy settings. But When I decided to delete this software and return the rights back, I suddenly found that I can not change
the proxy settings manually!
The detail is that I change the auto proxy url, to let my pc use a pac file and I don't want any softwares to change. However, when I decided to give the rights back and try to change the url back, it never success, and even the same when i'm sure I have
cleared this url in the whole registry, but it back, as it never changes!
I check the registry rights twice or more to make sure that the rights has given back, just like it originally should be. But it never works.
So the result is I have to clear and reinstall the WINDOWS 10 AGAIN!
Never should you save such information both in registry and somewhere I don't know! Or you should let these stuffs out of the ** registry!

Read other answers
RELEVANCY SCORE 48.8

Hello,
Is it possibly the Anniversary Update, which has blocked my possibilities to change the Lock Screen configuration? In Settings->Personalisation that whole option is greyed out today and I'm stuck with a lock screen, which I can't modify or change. Any help for this? Perhaps there is a registry change I could apply? I would be happy for any suggestion.

I've attached an image. My language is Swedish, but I guess that you will recognise the part of the Settings->Personalisation, which is shown.

Thanks in advance

Read other answers
RELEVANCY SCORE 48
RELEVANCY SCORE 48

That is my problem as stated above.

Henry

A:Can't change am/pm in settings, update,change active hours.

Hello Henry,

You should be able to click/tap on the arrows above/below AM/PM, or click on AM or PM to select one like below.

Windows Update Active Hours - Change in Windows 10

Read other answers
RELEVANCY SCORE 47.6

Dear all,
I am in a trouble with Advanced Power Setting on Windows 10.
There are limited options only when I go to Control Panel\Hardware and Sound\Power Options\Edit Plan Settings\Change advanced power settings in particular Intel (R) Dynamic Dynamic Platform and Thermal Framework Settings.
For some of the missing options I followed this page and fixed: www.eightforums.com/.../50890-options-missing-power-options-advanced-settings.html
However I could not add Intel (R) Dynamic Dynamic Platform and Thermal Framework Settings in advanced power settings even though followed these links:

https://www.reddit.com/r/Dell/comments/5vdbo4/xps_13_9350_hack_to_configure_processor_tdp/
http://imgur.com/a/eUDJU

P.S: All drives are updated.

A:Missing Advanced Power Settings: TDP Settings (XPS13 9360)

I don't see them on my XPS 13 9360 either.  I just figured that this CPU/chipset might not support those settings anymore.

Read other 3 answers
RELEVANCY SCORE 47.2

Ok, I have two ports for ram in my computer, i only have 512MB. I tryied adding a 256MB in the second slot to speed up my computer but when i turn on the computer it says that my ram exceeds the limit and wont boot up. I was just wondering if there is a way to change the limit of ram and if so how do i do it?

(I have a 30gb HD and a 1.4gh Processor with only 512mb of ram)
 

A:My computer wont let me add ram. How do i or can i change settings to change that?

You can go to Crucial and let them scan your computer and they will tell you how much
memory your computer should have.
http://crucial.com/#
You should buy your memory from the manufacturer of your computer.
 

Read other 2 answers
RELEVANCY SCORE 46.8

Something seems to be keeping me from un-checking the option "Display a notification about every script error" setting on the "Advanced" tab of the Internet Options Window. I have tried registry adjustments as well as looked in the Group Policy settings but I just cannot seem to figure this one out. I have a sneaking suspicion it may be one of those darn Windows Updates causing this.

Thanks in advance for any help/replies.

I'll be happy to supply more info on request.

WinXP Pro SP-2

Thanks, Driving me nutty, Bryan
 

A:Something Blocking Script Settings in IE 6 SP2

See if there is a more recent update for IE-6 (IE-7 for XP is not experiencing same problem). Found a blog that talks about a lot of people having problems with the August.06 update from MS and some suggested remedies. You can read it at:
http://blogs.msdn.com/ie/archive/2006/08/08/692437.aspx​The discussion starts to get involved with this on the Thursday, August 10, 2006 1:12 AM by Phil.
 

Read other 1 answers
RELEVANCY SCORE 46.8

I seem to have a problem logging onto some sites with I^ 6, but no problem in F/Fox 3.

The log is a script, do I need to change a setting in IE 6?

I would just use F/Fox 3 but the copy and paste does not retain the format so the resulting paste is a mess.

Any help or advice appreciated
 

A:Solved: IE 6 settings, script.

Try restoring all security zones to default and also restore your advanced settings in the advanced tab to default.
 

Read other 2 answers
RELEVANCY SCORE 46.4

how to change his script?

A:how to change his script?

try downloading and unzipping these font files in the attached package.

click on each one, and press the install button.

Read other 4 answers
RELEVANCY SCORE 46.4

Hi guys, I'm new here and this is my first post. I have an Optiplex 745 running Windows 7 Professional. Normally in the advanced setting section of the power plan option I have the option to change the power state, however all of a sudden these options have just totally disappeared. Any help is appreciated.

Thanks in advance.

A:Missing power state controls in advanced power plan settings

What Power plan are you using ?

Balanced, Power Saver or High Performance ?

Also, run a System File Check

SFC /SCANNOW Command - System File Checker

Use option 2

Read other 7 answers
RELEVANCY SCORE 46.4

I have a problem PC that I've scrubbed clean with everything from Combofix to Ccleaner to Malwarebytes anti-rootkit, to JRT, to ADW, to TDSS, to rkill and beyond.

The only thing wrong with this PC is that, every few days the proxy settings are toggled on and I need to go turn them off.

I can find no trace of any malicious software on this machine at all, so while I do more research I want to write a script that will run every 10 minutes or so turning off Internet proxy settings.

Would any adventurous soul be willing to lend a hand in this one?

A:Script To Turn Off Proxy Settings

Hi,

Try this..


Code:
reg add "[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
" /v ProxyEnable /t REG_DWORD /d "0" /f
I have no idea if it works for FF or Chrome, but it does seem to work for IE, which is the only one I tried it on.

All you need to do it add that line to a .BAT/.CMD file, and set up a windows task to run when you want it.

A tutorial for that can be found here... Task Scheduler - Create New Task

But I don't deserve credit for this... I simply Googled your request and got thousands of hits...

https://www.google.com.au/search?q=d...NejM8gfR_oH4AQ

Read other 2 answers
RELEVANCY SCORE 46.4

I'm looking for two scripts that would:

1. Clear the static ip fields in the TCP/IP properties, and select Automatic for the standard IP and DNS settings
2. Reset the TCP/IP properties to specific static IPs?

My environment:

All machines in my office domain are configured with static DNS IPs. There's a particular application, however, that functions only within an Automatic IP/DNS configuration. I'd like to be able to run a script that would clear DNS settings on the fly, for this app to work, then reset those IPs to static immediately thereafter.

Any help would be greatly appreciated.
 

A:Script to reset TCP/IP static settings

Try Microsoft's netsh command:
http://technet.microsoft.com/de-de/library/bb490943(en-us).aspx
 

Read other 2 answers
RELEVANCY SCORE 46
A:Settings>change pc settings problem

hello, i'll only answer 2 question ,#4and 5.that all I use for over 2 years now , and have had no issues at all with the 3 program uyou mention ,but iam a safe surfer in my own opinion .

Read other 6 answers
RELEVANCY SCORE 46

hi,
is there a script which can enable the user to change password on a standalone server from their workstations ?
thanks
 

Read other answers
RELEVANCY SCORE 46

About to roll out a bunch of VM's onto a domain, but I need to know how to automate a computer name change based on a variable BEFORE it joins the domain.

I've got a cmd script in SetupComplete.cmd that goes to a website to get a hostname based on the computers IP.
So is there any way to automate a script to get the variable and assign it as the host name?

This is the script I use to get the hostname. It assigns the hostname to the variable VMHOST.

Code:
for /f "delims=" %a in ('c:\windows\system32\webfetch.exe websiteurl.php') do @set VMHOST=%a

A:Need a script to change the name of a computer

Where is the variable you need? or are you talking about VMHOST variable and using it?

Read other 9 answers
RELEVANCY SCORE 46

We use an SCCM OSD task sequence to image our workstations.  This task sequence enables bitlocker, with a numeric pin.  We want to change this pin after the fact to an alphanumeric pin.  Enhanced PINs are enabled.
Unfortunately, MS for some reason doesn't make MBAM available to customers with Open license agreements, so that isn't an option for us.  
Manage-BDE -changepin seems like it would do this, but it doesn't accept the new pin as a command line parameter, it prompts for the new pin.  I need to do this somehow via a script, without user interaction.  How can I accomplish this?


Manage-BDE -changepin seems like it would do this, but it doesn't accept the new pin as a command line parameter, it prompts for the new pin.  I need to do this somehow via a script, without user interaction.  How can I accomplish this?

Manage-BDE -changepin seems like it would do this, but it doesn't accept the new pin as a command line parameter, it prompts for the new pin.  I need to do this somehow via a script, without user interaction.  How can I accomplish this?

Read other answers
RELEVANCY SCORE 46

hello, i have a 9800gt that gives a very low fps on crysis, i went to the shop from where i purchased it and they said that you need to change your power supply, currently its 230watt, i was thinking that i should replace my card with another one as mine does not have a six pin supplementary power connector. so my question is that should i change my psu first or should i switch my card first?
 

A:Should i change my power supply or should i change my graphics card?

your running a 9800gt on a 230W PSU!? not sure how your doing that without it shutting down as soon as you start a game. the 9800gt needs a 450W psu with 24A on the 12v rail (s). change the PSU. you are fortunate that you haven't overstressed the 230W psu and destroyed the rest of the system.
 

Read other 6 answers
RELEVANCY SCORE 46

Is there a way, either thru PowerShell or some other script to wipe a Windows 8 device back to it's factory default? (Same as doing a "Remove everything and reinstall Windows" from the PC Settings page).
One of our jobs is to reset a bunch of Windows 8 Devices (talking about 10-50 per week). We were interested in automating this process as much as possible.
How would I go about doing this?
Thanks,

A:Wipe to factory settings (Refresh) thru script

It is possible through Powershell have a look at:
http://gallery.technet.microsoft.com/scriptcenter/Script-to-refresh-Windows-eca1e59a
http://gallery.technet.microsoft.com/scriptcenter/Script-to-create-a-custom-a6e8b4e8
Hasan

Read other 10 answers
RELEVANCY SCORE 46

We are using a logon script batch file for people that use a mandatory profile. This script is shared for Win Nt 4.0 workstations as well as Win 95 workstations. What we need to do is add an entry to the logon script that plants the proxy server settings (192.168.65.2 port 80) into Internet Explorer at logon to NT4.0 workstations only. I suspect the script will modify the registry to accomplish this. I don't know the syntax of what to write in the batch file - can anybody help please?

Tony
 

A:Logon script entry for IE Proxy Settings

Read other 10 answers
RELEVANCY SCORE 46

Hello, I need help in setting bios settings remotely to 1000+ computers. I have a problem where I have computers with two different passwords. I came up with PowerShell script but the two passwords don't work in conjunction together. Can you please help with the scripts. Can you also provide me with VBS script so I can use group policy to apply the changes? Powershell will work in SCCM task sequence but doesn't work in group policy because of evaluation issues. Here is the script I came up with:   param(
[Parameter(Mandatory=$true,Position=1)]
[string]$password,
[Parameter(Mandatory=$true,Position=2)]
[array]$config
)
$settings = Get-Content $config
foreach($setting in $settings)
{
$run = "$setting,$password,ascii,us"
$Response = (gwmi -class Lenovo_SetBiosSetting -namespace root\wmi).SetBiosSetting("$run").return
write-output ("$setting`n$Response")
if($Response="Access Denied")
{$password="h3cabozihctymageiv4i"}
$Response = (gwmi -class Lenovo_SaveBiosSettings -namespace root\wmi).SaveBiosSettings("$password,ascii,us").return
write-output ("$setting`n$Response")

}Powershell.exe -ExecutionPolicy bypass -file "\\mdt\deploymentshare$\Scripts\Westmount\BIOS Update\powershell.ps1" -password h3cabozihctymage -config "\\mdt\deploymentshare$\Scripts\Westmount\BIOS Update\Lenovo Bios Setting.txt" The  script works but not with second password.  Is it possible you can help me out here? I have very... Read more

Read other answers
RELEVANCY SCORE 46

I've got a desktop running Win 7 Professional.

On my actual desk I have two monitors, one that I use as my main one, and a second that I bring up when I could really use the extra display. I also have a set of basic speakers.

However I also hook this tower up to an HDTV, and use that as a the audio/video out regularly.

I'd like to set up some basic scripts for switching between these devices, without having to go through the settings myself.

Is this do-able, either natively in Windows or through some third-party program?

A:Is it possible to script frequent changes to monitor/sound settings?

I would like to know this, as well, specifically changing what output the sound goes to.

I currently have JBL Pebble speakers connected through USB, and also an HDMI cable from my video card to the TV, and an optical cable from the motherboard to my receiver.

Most of the time I just use the Pebble speakers for sound. But every now and then I want BIGGER sound in the living room and would like to send the sound to the surround sound amplifier. Also on some occasions I use the TV for viewing online content when my TV or Blu-Ray smart apps just won't get the job done.

I have a Harmony 650 remote that I use for the amp and TV to get them on the correct inputs for whether I just want sound from the PC, or both sound and video. But I then have to go into "Playback Devices" and change what output is the "default" to get the sound out of either the Pebble speakers, or my amp and surround sound speakers.

Is there not an easier way to accomplish this besides having to change the "default" setting every time?

Read other 1 answers
RELEVANCY SCORE 46

I am having a problem with savings settings on a Dell TrueMobile 1184 router. I log into the router via Internet Explorer, using the URL http://my.router. When I attempt to change the advanced settings and then click on the [submit] button, I get a script error, which reads http://my.router/cgi-bin/sysconf.cgi?* (* being the name of the specific command I am trying to use).

Dell has not helped and states specifically that they offer no tech support for advanced settings in their routers. Their tech support has been sliding downhill over the last several years, but that's another issue.

I'm running WinXP Pro with SP2, Outpost firewall (I have the Windows firewall disabled). I suspect this may be a SP2 issue, but I can't figure it out.

Any help or solutions that anyone can offer would be much appreciated. Thanks.
 

A:Saving router settings & script errors

Did these commands use to work correctly, then somewhat recently stop working? Or have they never worked? Have you attempted to configure the router with no firewalls active on your PC? Can you configure the router via command line?
 

Read other 3 answers