Sorry for the typo :(
And thanks crobin1 for correcting it :)
Doubleplay, I know you can do what you need with a bit clever scripting and comparing columns... perhaps if you provide 3-4 rows of each csv file you got and let me know what fields you are interested in comparing and I can have a...
I'm sure there is a better solution, but this is a kind of workaround.
So, just handle the files as normal files and not as csv files when you compare them, that seems to work fine.
$Master = Get-Content master.csv
$New = Get-Content new.csv
Set-Content -Path finalnew.csv -Value...
You have to pass the username and password in clear text.
You do that by using $cred.GetNetworkCredential().UserName and $cred.GetNetworkCredential().Password
$cred = get-credential
$domain = "t2.local"
$user = $cred.GetNetworkCredential().UserName
$pwd =...
You could get it by reading it straight from the registry on the remote machine(s).
$Machine = "MachineToCheck"
$reg = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey("LocalMachine",$Machine)
$regKey= $reg.OpenSubKey("System\\CurrentControlSet\\Services\\lanmanserver\\parameters")...
VBscript can't multi-thread, to achieve what you want to do you should use .NET or Powershell (which in effect is pretty much .NET as well) and use the threading functionality that gives you.
Hi
I think you want to use the Add-Content cmdlet instead of the Set-Content cmdlet. The Set-Content overwrites the data each time that is why you only see the last server.
Difficult to give any good tips wihtout understanding what is slow.
The few basic performance tips I can think of are:
1. Ensure you don't have any power savings feature enabled. Check by running powercfg -query, you should have it set to 'always on'. (especially if you run virtual server /...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.