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 Mike Lewis 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: *

  • Users: GrimR
  • Order by date
  1. GrimR

    Hope someone can help how can i

    Hope someone can help how can i add ; in cetain places e.g. numbers (1 to 4 digits)(ADD;) String text can be any length also contain &+ etc characters)(ADD;) (Price in 0:20 to 1450:00 formatt)(ADD;)(more String Txt)(ADD;) another digit 1 Coke 20 Stock 01; Coke; 20; Stock; 0 234 Fanta Grape &...
  2. GrimR

    Help with script

    found an error this line $platform = get-itemproperty HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration -name Platform should be $platform = (Get-ItemProperty HKLM:\SOFTWARE\Microsoft\Office\ClickToRun\Configuration -name Platform).Platform MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA...
  3. GrimR

    parameters/ Arguments using powershell

    it works on ssome msi files but I have others this does not work on MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  4. GrimR

    why wont this exit

    thanks for all the help HAHAHA fixed it #Get Windows Version $version=(Get-CimInstance Win32_OperatingSystem | Select-Object Caption, Version, ServicePackMajorVersion, OSArchitecture, CSName) write-host $version.Caption "is installed" if ($version.caption -like '*Windows 7*'){ write-host...
  5. GrimR

    why wont this exit

    #Get Windows Version $version=(gwmi win32_operatingsystem).caption write-host $version "is installed" $win7='Microsoft Windows 7 Professional' $Win10='Microsoft Windows 10 Pro' if ($version -eq $Win7){ exit } else { #Add registry key for Windows 10 netwrok errorif write-host $Win10...
  6. GrimR

    Help with script

    i think i fixed it $appToMatch = '*Mimecast*' $DisplayVersion ='7.3.2061.19940' function Get-InstalledApps { if ([IntPtr]::Size -eq 4) { $regpath = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' } else { $regpath = @(...
  7. GrimR

    Help with script

    The app to match works, but the platform section does not seem to be working $appToMatch = '*Mimecast*' function Get-InstalledApps { if ([IntPtr]::Size -eq 4) { $regpath = 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*' } else { $regpath = @(...
  8. GrimR

    parameters/ Arguments using powershell

    found one that works $cmdhash=@{} $cmdhash['FilePath'] = 'C:\Windows\System32\msiexec.exe' $cmdhash['Wait'] = $true $cmdhash['NoNewWindow'] = $true $cmdhash['ArgumentList']=@() $cmdhash['ArgumentList'] += '/i \\esd189.org\dfs\wpkg\software\Google\GAPS\googleappspasswordsync64.msi'...
  9. GrimR

    parameters/ Arguments using powershell

    How can I install the parameters/ Arguments using powershell Start-Process 'server\software$\Agent-6.11.1-x64.msi' -ArgumentList "/i /qn" "Agent='GROUP' SERVER=cloud.work.com:443 KEY=4cehdahdihaifdiahfidhfaduhfdjhf" -Wait I get the same error in this website, but when I try his solution it...
  10. GrimR

    uninstall/install msi

    no need for help got this working MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  11. GrimR

    Batch File

    Mostly commands with switches in e.g msiexec /i "Agent-6.11.1-x64.msi" /quiet Agent_GROUPS="NameHere" AGENT_SERVER=server.com:443 Agent_KEY=92849238474832748237482 e.g PsExec64.exe -accepteula -u "Patch" -p "P@55w0rd" Installer.exe MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  12. GrimR

    Batch File

    OK so that clears that up, thanks, but for some reason Win10 just doesnt seem to process the commands as in Win7 and before. It just seems to have too much security MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  13. GrimR

    uninstall/install msi

    I have batch files that check the registry and if exists uninstalls the app, and then reinstalls the new version, now in Win10 these do not work as its a batch file and it does not seem to run. So how do i convert these to powershell, thought but now there would be some good examples but I cant...
  14. GrimR

    Batch File

    How can I get a batch file to run in Windows 10, when I double click it, it takes each line as a seperate command, if you hold down shift all you get is powershell which does the same thing. MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  15. GrimR

    wshshell not running

    Thanks, strongm learnt something new MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  16. GrimR

    wshshell not running

    strongm, your way does not work to run the file Mimecast for Outlook 7.3.2061.19940 (64 bit).msi" /qn is correct (see below) DOS U:\Mimecast\Mimecast for Outlook 7.3.2061.19940 (32 bit)>"Mimecast for Outlook 7.3.2061.19940 (32 bit).msi /qn" The directory name is invalid. Run the way in my code...
  17. GrimR

    wshshell not running

    strongm, I dont see any difference, BTW I did copy and paste yours still same errors MCSE NT to 2012, MCITP:EA/SA, MCSA, MCDBA, MCTS, MCP+I, MCP
  18. GrimR

    wshshell not running

    Removed on error resume next and get Error line 20 Chr(..) then tried WshShell.Run "\\dbngt05\software$\Mimecast\Mimecast for Outlook 7.3.2061.19940 (64 bit)\Mimecast for Outlook 7.3.2061.19940 (64 bit).msi" /qn, 0, True and get line 20 type mismatch 'wshshell' any ideas MCSE NT to 2012...
  19. GrimR

    wshshell not running

    what is wrong here Set wshShell = CreateObject("WScript.Shell") strKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\ClickToRun\Configuration" strValue = "Platform" strData = "x86" On Error Resume Next strData = wshShell.RegRead(strKey & "\" & strValue) On Error Goto 0 Select Case strData...
  20. GrimR

    unlock user array

    and i need it to pop up like this (off one of my scripts) easy if they static entries, but obviously the number will be next to a username and will execute a command to unlock the AD account. Dim WshShell:Set WshShell = WScript.CreateObject("WScript.Shell") bullet = Chr(10) & " " & Chr(149) &...

Part and Inventory Search

Back
Top