This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM Per-User | |
@reg add "HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\15.0\Lync" /v "DisableServerCheck" /t "REG_DWORD" /d "0x1" /f | |
REM Per-Machine | |
@reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Office\15.0\Lync" /v "DisableServerCheck" /t "REG_DWORD" /d "0x1" /f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT [conn1].[ResourceGuid] | |
FROM | |
[CollectionMembership] [conn1] | |
LEFT JOIN [vCollection] [conn2] ON [conn1].[CollectionGuid] = [conn2].[Guid] | |
WHERE [conn2].[Name] = 'Windows Servers' | |
SELECT [Name] = UPPER([Name]) | |
FROM [vComputer] | |
WHERE [Guid] IN ( | |
SELECT [conn1].[ResourceGuid] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[int]$Seconds = 30 | |
try { | |
$LastStatus = (Get-Service -Name "AeXNSClient").Status | |
if ($LastStatus -ne 'Running') { | |
return $false | |
} else { | |
$i = 1 | |
do { | |
$CurrentStatus = (Get-Service -Name "AeXNSClient").Status | |
if ($LastStatus -ne $CurrentStatus) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[string]$xmlFilePath = "$((New-Object -ComObject Altiris.AeXClient).InstallDir)\TaskManagement\statusXml\History\TaskHistory.xml" | |
# Check the file exists | |
if (!(Test-Path -Path $xmlFilePath)) { | |
return $true | |
} | |
# Check for Load or Parse errors when loading the XML file | |
try { | |
[void](New-Object System.Xml.XmlDocument).Load($xmlFilePath) | |
return $true | |
} catch [System.Xml.XmlException] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(Get-ChildItem -Path "$($env:windir)\System32" | Where-Object {$_.Name -ilike 'SET*.tmp' -and $_.VersionInfo.OriginalFilename -eq 'DIFxAPI.dll'} | Measure-Object -sum Length).Sum / 1MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ALTER TABLE {TABLENAME} | |
ADD {COLUMNNAME} {TYPE} {NULL|NOT NULL} | |
CONSTRAINT {CONSTRAINT_NAME} DEFAULT {DEFAULT_VALUE} | |
ALTER TABLE [L_ContractAssigned] | |
ADD [ContractAssignedEmpID] VARCHAR(100) NULL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Const HKEY_LOCAL_MACHINE = &H80000002, HKLM = &H80000002 | |
Dim StdRegProv: Set StdRegProv = GetObject("winmgmts:{impersonationlevel=impersonate}!//./root/default:StdRegProv") | |
Dim InstallDir: StdRegProv.GetStringValue HKEY_LOCAL_MACHINE, "SOFTWARE\Altiris\Client Service", "InstallDir", InstallDir | |
WScript.Echo InstallDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<key>Packages</key> | |
<array> | |
<dict> | |
<key>Size</key> | |
<integer>18706944</integer> | |
<key>URL</key> | |
<string>http://swcdn.apple.com/content/downloads/15/54/041-303/PnWF3JfCrcJZMdD2RnMNdV694HVVZb3zNT/Safari.msi</string> | |
</dict> | |
</array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT | |
file_id | |
, name | |
, type_desc | |
, physical_name | |
, size | |
, max_size | |
FROM sys.database_files |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT DISTINCT [Agent Name], [Ident] FROM [Inv_AeX_AC_Client_Agent] WHERE [Agent Name] IS NOT NULL AND [Ident] IS NOT NULL ORDER BY [Agent Name] |