vonPryz

Forum Replies Created

Viewing 30 posts - 1 through 30 (of 350 total)
  • Author
    Posts
  • Avatar
    vonPryz
    Member
    in reply to: Installing Win 2008 VM #347610

    Re: Installing Win 2008 VM

    tehcamel;237777 wrote:
    it’s to do with network adaptor, not disk controllers,

    Speaking about disk controllers, Hyper-V guests can boot only from IDE disks. A SCSI boot device is not supported, although one can add SCSI controller for additional hard disks later.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Industry Standard Password Age #347609

    Re: Industry Standard Password Age

    Deland01;237659 wrote:
    domain maximum password age

    IMAO, 30 days is too short a period. Because users need to invent 12 complex passwords a year, they tend to either write them down (on a Post-It note that is sticked beneath the keyboard) or use sequences like Pa$$w0rd1, Pa$$w0rd2… Pa$$w0rd12 (for which they are likely to write down the formula too).

    Consider using multifactor authentication like smart cards if high security is required. Otherwise, increasing password age to 60/90 days shouldn’t be big a downgrade on security, but you mileage may vary.

    -vP

    Avatar
    vonPryz
    Member

    Re: Calling all web developers – How do I create a gallery with pop up images?

    Use a Javascript framework like JQuery or Dojo. There are gazillion slideshow templates that are easy to use with JQuery. Here is an example.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Get attribute for a user #347607

    Re: Get attribute for a user

    Use dsquery for generic LDAP query. You can list a lot of the attributes by using -attr *. Like so,

    dsquery * -filter “(&(objclass=user)(samaccountame=USERNAME))” -attr *[/CODE]You can replace the * with any attribute you wish to get a value for.

    -vP[CODE]dsquery * -filter “(&(objclass=user)(samaccountame=USERNAME))” -attr *[/CODE]You can replace the * with any attribute you wish to get a value for.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Database backups and recovery methods #347606

    Re: Database backups and recovery methods

    marcopolo;235872 wrote:
    For the two main databases ‘SharepointIntranet’ and ‘SharepointConfig’ we have set to Full recovery but we are finding the transaction logs are filling up rather quickly.

    Either switch the database recovery model to simple or start doing log backups.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Search for .doc files. #347605

    Re: Search for .doc files.

    You got a list of files to copy?

    -vP

    Avatar
    vonPryz
    Member

    Re: Script to Report Process Memory Size & Export to Excel File

    Which scripting language you’d like to use?

    Powershell: get-service and export-csv
    Batch: tasklist > file, parsing with for and echo >> logfile
    VBScript: WMI: Win32_process and write to file.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Advice on a Virtualization Strategy #347603

    Re: Advice on a Virtualization Strategy

    marky9999;234422 wrote:
    possible to automate a Copy from a Live VM to a Test VM without downtime for the live VM.

    Without downtime it’s going to be hard. I’ve resolved similar a case by shutting down the guest at 0300, running an export and restarting the guest.

    WMI is the answer. Win32_operatingsystem is used to shut down the guest and Msvm_VirtualSystemManagementService is used to export the machine.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: is physical swap file needed or not ? #347602

    Re: is physical swap file needed or not ?

    Albertwt;234361 wrote:
    can I make it approximately 16 GB for the current 64 GB server ?

    A 16 Gb swap is predictable and should be good enough. If you constantly are running short of virtual memory, consider distributing workload and/or adding more RAM.

    If you run out of space on the system drive, your server is going to die. You do set up the system to different a partition than database and log files, right?

    -vP

    Avatar
    vonPryz
    Member
    in reply to: A script to change usernames? #347601

    Re: A script to change usernames?

    Managor;234402 wrote:
    They would be local accounts on remote computers.

    WMI is the answer. Use Win32_UserAccount.Rename(). VBScript or Powershell works fine. Here is an example on renaming some local accounts, should be easy to convert to remote system.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: is physical swap file needed or not ? #347600

    Re: is physical swap file needed or not ?

    Albertwt;234339 wrote:
    Do I still need to use pagefile.sys or I can just turn it off completely ? it is a physical server and it runs SQL Server 2008 Enterprise DB for OLAP

    (How come this is on VMWare forum?)

    Yes, you need a page file. What do you suppose happens when your DB has allocated all the RAM and some more is needed for, say, OS process?

    Not configuring a page file is not going to save much disk space or the like, so there is little advantage for not having one.

    Crash dumps are also written into the page file.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: How to display ipaddress and system names in LAN.? #347599

    Re: How to display ipaddress and system names in LAN.?

    ramanasiva02;234018 wrote:
    Actually I am doing one project in java

    Why didn’t you tell this in the first hand? Use InetAddress.isReachable().

    Implement a ping sweep by getting your local IP address (hint: InetAddress class), look for subnet mask and generate all the addresses in that block. Ping each one and pull up a nslookup for ’em as well.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: April fools joke – suggestions – redirect #347598

    Re: April fools joke – suggestions – redirect

    A proxy can be used for serious amusement. Here is an entertaining setup.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: How to display ipaddress and system names in LAN.? #347597

    Re: How to display ipaddress and system names in LAN.?

    Open command shell and run ipconfig /all.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Snap Shot Data #347596

    Re: Snap Shot Data

    hlobell;233834 wrote:
    Maybe it’s me but I think I did that once and the .avhd came back. Is that possible?

    To be sure, export the VM into another a directory. The export process copies only the files that belong into the VM, so leftover AVHDs are not carried along.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Snap Shot Data #347595

    Re: Snap Shot Data

    gerth;233833 wrote:
    When you power off the vm, the data is merged into the original vhd.

    Be aware that merging disks can take a long time and can consume a lot of HDD space. This might cause unexpected results. Some time ago, deletion of obsolete a VM caused quite a few other VMs to halt. That happened because snapshot AVHDs are merged before deleting. This consumed so much HDD space that VMs that needed to expand dynamic VHDs were unable to do so and were therefore set in Paused Critical state.

    If one plans for downtime, remember that snapshot merging can cause nasty surprises.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Securely publishing FTP to the internet ? #347594

    Re: Securely publishing FTP to the internet ?

    Albertwt;233658 wrote:
    Manually sending the files with DVD media by postal service.

    Use a secure courier instead of mail. If regular mail is used, DVD contents should be encrypted in case it is stolen or lost.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: What are low cost fail over options? #347593

    Re: What are low cost fail over options?

    iSCSI can be implemented with software only solution, as gforceindustries wrote above, so all you need is some hardware to run the iSCSI services. Hardware iSCSI storage systems are available too. A Buffalo Terastation 3 iSCSI box with four terabytes of RAIDable storage costs around $1100.

    Since you mention Hyper-V, one can do host clustering with the free Hyper-V server. If you consider running a full-featured Windows Server 2008, be aware that you need at least two Enterprise Editions ($4000+CALs for each node) to do failover clustering. Standard Edition ($1000+CALs) does not support failover clustering.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Hyper V Backups #347592

    Re: Hyper V Backups

    sorinso;232683 wrote:
    I am working with HP Data Protector. As for now, I am backing up the VMs as real servers, with agents installed.

    Thats what I do too. Backing up vhd files isn’t good as the backups take lots of space and one needs to shut down the VM first. Based on some tests, copying a running system’s vhd is not going to be stable, no matter what the VSS writer claims. That’s because VSS is not aware of what applications are doing. Sure, the filesystem is not going to have abandoned transactions or the like, but VSS still doesn’t understand higher levels. And this is the reason Sql Servier nowadays has a VSS service.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Logging in batch file #347591

    Re: Logging in batch file

    Use Autoit’s own logging functions. FileWriteLine(handle, text) works well.

    -vP

    Avatar
    vonPryz
    Member

    Re: VBScript in Windows server 2008 R2 (VBScript 5.8), I cannot seem to find anything

    Wired;232143 wrote:
    Powershell has nothing to do with .NET as far as I know.

    I’m sorry, but it does too: “The .NET Framework 2.0 is required in order to install Windows PowerShell.” In addition, all the Powershell objects are .Net objects anyway.

    There are hacks to install .Net on Core, but who really cares? R2 Core is different a story.

    -vP

    Avatar
    vonPryz
    Member

    Re: VBScript in Windows server 2008 R2 (VBScript 5.8), I cannot seem to find anything

    Ossian;232078 wrote:
    VBS is still fully supported in 2008

    For the note, there is no Powershell in Server 2008 RTM Core installs, as there is no .Net. Should one need a core install and scripting, VBS is the only alternative for batch files.

    -vP

    Avatar
    vonPryz
    Member

    Re: Help in creating script to monitor exe memory utilization on server

    You didn’t read MSDN documentation for the process class, did you?

    -vP

    Avatar
    vonPryz
    Member

    Re: Server Error in ‘/’ Application. HTTP 404 – The Resource Cannot be found.

    So what Fiddler told you about the HTTP traffic?

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Hp Factory Recovery Restore Infected With Trojan? #347586

    Re: Hp Factory Recovery Restore Infected With Trojan?

    False positives sound a bit unfeasible for basic Windows install. As you are unable to update either AV software, it is highly possible your recovery system is infected too.

    Get a recovery DVD, wipe the HD and do clean reinstall.

    -vP

    Avatar
    vonPryz
    Member

    Re: Help in creating script to monitor exe memory utilization on server

    Use WMI. Win32_process might be a good starting point. An example at Guy Thomas’.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Export accepted domains in PowerShell #347584

    Re: Export accepted domains in PowerShell

    Ossian;231457 wrote:
    Did you manage to strip out the newline and make it one line of text

    Use a stringbuilder to catenate rows. Like so,

    # Create a new StringBuilder
    $sb = new-object text.stringbuilder

    # Get data from domain list file that has all the domains on separate rows like
    # contoso.com
    # adventureworks.com
    # tailspintoys.com
    #
    # Iterate contents with foreach loop and append formatted into sb
    cat .Domains.txt | % { [void] $sb.append(“{0} ” -f $_)}

    # Print data:
    # contoso.com adventureworks.com tailspintoys.com
    $sb.ToString()
    [/CODE]So what’s the deal with [CODE][void] $sb.append(“{0} ” -f $_)[/CODE]? [void] makes the Append() method quiet, otherwise it would print status messages. Append itself appends (duh) data into existing buffer. “{0} ” -f $_ is a format string. The current object on pipeline gets a space padding on its end.

    -vP[CODE]# Create a new StringBuilder
    $sb = new-object text.stringbuilder

    # Get data from domain list file that has all the domains on separate rows like
    # contoso.com
    # adventureworks.com
    # tailspintoys.com
    #
    # Iterate contents with foreach loop and append formatted into sb
    cat .Domains.txt | % { [void] $sb.append(“{0} ” -f $_)}

    # Print data:
    # contoso.com adventureworks.com tailspintoys.com
    $sb.ToString()
    [/CODE]So what’s the deal with [void] $sb.append(“{0} ” -f $_)[/CODE]? [void] makes the Append() method quiet, otherwise it would print status messages. Append itself appends (duh) data into existing buffer. “{0} ” -f $_ is a format string. The current object on pipeline gets a space padding on its end.

    -vP[CODE][void] $sb.append(“{0} ” -f $_)[/CODE]? [void] makes the Append() method quiet, otherwise it would print status messages. Append itself appends (duh) data into existing buffer. “{0} ” -f $_ is a format string. The current object on pipeline gets a space padding on its end.

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Howto compare SQL Server schemas and database table ? #347583

    Re: Howto compare SQL Server schemas and database table ?

    So do you wish to compare just data in two different tables or table definitions? For the former, use except and intersect. For the latter, use a tool like RedGate Sql Compare.

    -vP

    Avatar
    vonPryz
    Member

    Re: I need to connect to a file on a shared drive but UNC path is not supported?

    Are you using managed C++ (ugh) or pure C++?

    Using UNC paths shouldn’t be a problem. Can you provide as short extract as possible for the app that reproduces the problem?

    -vP

    Avatar
    vonPryz
    Member
    in reply to: Data Recovery #347581

    Re: Data Recovery

    :google:. Some good search terms are linux live cd recover ntfs deleted file.

    -vP

Viewing 30 posts - 1 through 30 (of 350 total)