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 &...
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...
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...
#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...
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 = @(...
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'...
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...
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
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...
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
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.