|
Written by Daniel Mundy
|
|
Tuesday, 23 February 2010 15:33 |
|
For older versions of QuickBooks (2006, 2007/08) you need to:
- Give full access to the C:\Program Files\Intuit folder and all sub-folders
- Give full access to the QuickBooks data share on the server
- Right click on the shortcut icon and select Windows 2000 Compatibility Mode
|
|
|
Written by Daniel Mundy
|
|
Thursday, 18 February 2010 06:37 |
|
To list your physical drives, use the following cmdlet:
gdr | where {$_.Provider.Name -eq "FileSystem"}
gdr is an alias for Get-PSDrive, which includes all of the "virtual drives" for the registry, etc. |
|
Last Updated ( Thursday, 18 February 2010 06:39 )
|
|
Written by Daniel Mundy
|
|
Wednesday, 17 February 2010 07:28 |
|
"Hyper-V Server" is the free version that runs on Server Core. It has no GUI, but can be managed using PowerShell or by installing the Hyper-V Manager console on a workstation running Vista or Windows 7, or Server 2008.
Some things I always do when setting up a Hyper-V Server:
- Enable RDP using the Hyper-v Server config tool
The server config tool is C:\Windows\System32\sconfig.cmd, but you can just type "sconfig" to run it. You can disable it from automatically starting at logon, it's a menu option. |
|
Written by Daniel Mundy
|
|
Tuesday, 16 February 2010 19:30 |
|
I found this on Virtualization Admin, but I think it refers to an older version of the library as some commands were different.
Management Library for Hyper-V
Make sure to download the PDF documentation, it shows you how to load the module and which Cmdlets are available.
Run install.cmd, that will install the files etc.Then run "import-module C:\Program Files\modules\Hyper-V.psd1"
You can type Get-VMState to list VMs and whether they are running
Start-VM "VM Name" to start it. |
|
Last Updated ( Wednesday, 17 February 2010 07:27 )
|
|
Written by Daniel Mundy
|
|
Thursday, 11 February 2010 15:33 |
|
You may get the following error when trying to install a Kaseya agent using LAN Watch: The network path was not found.
The process will use the ADMIN share, so first make sure that you can browse to \\PC\ADMIN$
The firewall on the remote PC may be blocking you from doing this, so try disabling it.
It may also be due to incorrect or duplicate DNS registrations, or incorrect NetBIOS resolutions on the server.
Check the DNS and reverse DNS records on the server for the PC in question. If there are any duplicates, remove the bad entries.
The run the following on the server:
ipconfig /flushdns nbtstat -rR arp -d *
A member of the Kaseya forums mentions that before a deployment they always go into DNS, set scavenging to just a few hours and run it, then go into the reverse DNS section and delete all entries except the pointers for servers and domain. |
|
Last Updated ( Thursday, 11 February 2010 15:43 )
|
|
Written by Daniel Mundy
|
|
Thursday, 11 February 2010 14:37 |
|
Register a DLL silently: %SystemRoot%\System32\regsvr32.exe /s <path-to-DLL-or-OCX> |
|
Last Updated ( Thursday, 11 February 2010 14:39 )
|
|
Written by Daniel Mundy
|
|
Thursday, 11 February 2010 14:10 |
|
Suppose you wanted to call a program or another script from within your batch file. There are at least two ways of doing this that I know about.
First, you can just enter the path to the executable, like so:
c:\windows\notepad.exe
Run the script and notepad will open. You'll notice that the command window stays open until notepad is closed, because the script waits for the command to exit before it continues processing.
If you want to continue immediately without waiting for notepad to close, you can use the "start" command, like so:
start c:\windows\notepad.exe
The start command can do other things like adjusting priority, etc. Just type "start /?" to get an idea. |
|
Written by Daniel Mundy
|
|
Thursday, 11 February 2010 14:08 |
|
Sometimes you want to ask a question in a batch script, and do something based upon the response. You can use the set command and an if statement to achieve this:
set RESPONSE= echo Read backup log? (y/n) set /p RESPONSE= if /i (%RESPONSE%)==(y) notepad Backup.log |
|
Written by Daniel Mundy
|
|
Thursday, 11 February 2010 14:05 |
|
You can split a command onto the next line with ^ provided the next line starts with a space. eg.
robocopy C:\Backup X:\Backup^ /XD "C:\Backup\Excluded 1"^ "C:\Backup\Excluded 2" |
|
|
|
|
<< Start < Prev 1 2 3 4 5 6 7 8 9 10 Next > End >>
|
|
Page 1 of 12 |