Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Lundkvist

    Powershell: Network Adapter Enable - Disable

    For what it is worth, it works fine on Vista x64...
  2. Lundkvist

    Comparing CSV

    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...
  3. Lundkvist

    Comparing CSV

    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...
  4. Lundkvist

    Wscript.network and Get-cred

    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 =...
  5. Lundkvist

    Sending a Variable to a URL with Powershell

    Could you provide a bit more detail (code example) on what you try to do and what doesn't "work"?
  6. Lundkvist

    Computer Description

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

    Stopping Services across multiple servers in parallel

    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.
  8. Lundkvist

    For Each iteration problem

    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.
  9. Lundkvist

    64 Bit Servers

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

Part and Inventory Search

Back
Top