post by blogauthor 5


This is a post.

Here is some PowerShell code:

# ###########################################################
# DEFINED VARIABLES
# ###########################################################
# Service account SAMAccountName that holds all the file version information, and it's LDAP domain.
$SvcAccountName = "SVC-FileVer"
$SvcAccountDomain = "LDAP://DC=contoso,DC=com"
# ###########################################################
# END DEFINED VARIABLES
# ###########################################################
# Gather the .NET assemblies already loaded into the shell.
$LoadedAssemblies = [AppDomain]::CurrentDomain.GetAssemblies()
# If it's not already, load the Windows Presentation Framework Assembly for XAML reader WPF Forms functionality.
If (-not($LoadedAssemblies -match "PresentationFramework")) {
Add-Type -AssemblyName PresentationFramework
}
# If it's not already,Load the Windows Forms Assembly for Windows Forms functionality.
If (-not($LoadedAssemblies -match "System.Windows.Forms")) {
Add-Type -AssemblyName System.Windows.Forms
}
Done.

Comments (2)

  1. 1 says:

    comment by safari on windows

Skip to main content