office
Microsoft Office, or simply Office, is a family of client software, server
software, and services developed by Microsoft.
It was first announced by Bill Gates on August 1, 1988, at COMDEX in Las Vegas.office
Microsoft Office, or simply Office, is a family of client software, server
software, and services developed by Microsoft.
It was first announced by Bill Gates on August 1, 1988, at COMDEX in Las Vegas.office
<Configuration>
<Add SourcePath="C:\Office365" OfficeClientEdition="64" Channel="Monthly">
<Product ID="O365ProPlusRetail">
<Language ID="en-us" />
</Product>
</Add>
<Updates Enabled="TRUE" Channel="Monthly" />
<Display Level="None" AcceptEULA="TRUE" />
<Property Name="AUTOACTIVATE" Value="1" />
</Configuration>Office
on error resume next
 
Set objShell = CreateObject("Wscript.Shell")
 
Const HKEY_LOCAL_MACHINE = &H80000002
 
Const OverwriteExisting = TRUE
 
'SETS CURRENT DIRECTORY TO VARIABLE
strCurrentDirectory = objShell.CurrentDirectory
 
'SETS COMPUTER NAME
strComputer = "."
 
'SET UP WMI
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
 
'SET UP REGISTRY
Set objRegistry = GetObject("winmgmts:\\" & strComputer & "\root\default:StdRegProv")
 
strKeyPath = "SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\ProfileList"
 
objRegistry.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubkeys
 
For Each objSubkey In arrSubkeys
 
on error resume next
 
strValueName = "ProfileImagePath"
 
strSubPath = strKeyPath & "\" & objSubkey
 
objRegistry.GetExpandedStringValue HKEY_LOCAL_MACHINE,strSubPath,strValueName,strValue
 
Const POPUP_TITLE = "User To SID Conversion"
 
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
 
Set objAccount = objWMIService.Get("Win32_SID.SID='" & objSubkey & "'")
 
strUser = objAccount.AccountName
 
'strDomain = objAccount.ReferencedDomainName'returns referenced domain
 
'PROFILE NAME & SID
objSubkey = trim(objSubkey)'trims whitespace
 
strUser = trim(strUser)'trims whitespace
 
'LOGIC TO DETERMINE IF REGISTRY ACCOUNT IS TO BE ACCESSED
if strUser = "SYSTEM" then strUser = ""
if strUser = "LOCAL SERVICE" then strUser = ""
if strUser = "NETWORK SERVICE" then strUser = ""
'if strUser = "Administrator" then strUser = ""
if strUser = "Default" then strUser = ""
 
if strUser <> "" then
 
on error resume next
 
'APPLY REG KEYS
 
objShell.Run "%comspec% /c reg.exe add "&chr(34)&"HKEY_USERS\" & objSubkey & "\SOFTWARE\Policies\Microsoft\Office\16.0\Common\General"&chr(34)&" /t REG_DWORD /v ""OptInDisable"" /d 1 /f",0,true
 
objShell.Run "%comspec% /c reg.exe add "&chr(34)&"HKEY_USERS\" & objSubkey & "\SOFTWARE\Policies\Microsoft\Office\16.0\Registration"&chr(34)&" /t REG_DWORD /v ""AcceptAllEulas"" /d 1 /f",0,true
 
Wscript.Sleep 1000
 
end if
 
NextCopyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us
