Configure DNS Setting via Powershell

Hi,
I am trying to get a script together that will configure a static IP address, DNS, and WINS server settings. The instructions here are great, except the DNS part doesn't work.
http://blogs.technet.com/b/heyscriptingguy/archive/2012/02/28/use-powershell-to-configure-static-ip-and-dns-settings.aspx
Here are the commands in the script:
$wmi = Get-WmiObject win32_networkadapterconfiguration -filter "ipenabled = 'true'"
$wmi.EnableStatic("192.168.1.2", "255.255.255.0")
$wmi.SetGateways("192.168.1.1", 1)
$wmi.SetDNSServerSearchOrder("208.67.220.220", "208.67.222.222", "8.8.8.8")
$wmi.SetWINSServer("192,168,1,1")
Each time I run the script it fails on the DNS portion. I am doing this on Windows Server 2012. The specific error message is: Cannot find an overload for "SetDNSServerSearchOrder" and the argument count: "3".
Any ideas? Thanks
Jason Watkins MCSE, MCSA, MCDBA, CCNA

Hi N74JW,
What is your current situation?
If issue insists, you may take a try to save the DNS Server into a variable, see:
$dnsSearchOrder = "208.67.220.220", "208.67.222.222", "8.8.8.8"
$wmi.SetDNSServerSearchOrder($dnsSearchOrder )
Then check if issue could be solved.
Best regards
Michael Shao
TechNet Community Support

Similar Messages

  • Query Rules - length limitation on query conditions set via powershell

    My current client has 200 custom keywords in SP 2010 which they would like to migrate to SP 2013 query results.  I have powershell scripts to perform the export from SP 2010 and import into one of three SP 2013 environments.
    One limitation I have found in powershell -- that does not happen in the search service application UI! -- is a 100 character length limit on the keywords used for matching query conditions (synonym data in SP 2010).   The keywords can be set through
    the UI without limitation but are limited to 100 characters when using powershell!  It makes no sense!
    I suppose my final update could be done by hand (ugh!) and I would much rather be able to script these updates.  
    Any pointers or help?

    Hi grobinson,
    If you used this code line in your Powershell and have the following error:
    [string[]]$QueryRuleTerms=@($QueryRuleConditionTerm)
    Exception calling "CreateKeywordCondition" with "2" argument(s): "The value must be at most 100 characters long.
    Parameter name: Term"
    At line:2 char:1
    + $QueryRuleCondition = $QueryRuleConditions.CreateKeywordCondition($QueryRuleTerm ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : ArgumentOutOfRangeException
    You need to use the following code line with Split() method to add the multiple terms, it will work.
    $QueryRuleConditionTerm = "a1;a10;a100;a101;a102;a103;a104;a105;a106;a11;a12;a13;a14;a15;a16;a17;a18;a19;a2;a20;a21;a22;a23;a24;a25;a26;a27;a28;a29;a3;a30;a31;a32;a33;a34;a35;a36;a37;a38;a39;a4;a40;a41;a42;a43;a44;a45;a46;a47;a48;a49;a5;a50;a51;a52;a53;a54;a55;a56;a57;a58;a59;a6;a60;a61;a62;a63;a64;a65;a66;a67;a68;a69;a7;a70;a71;a72;a73;a74;a75;a76;a77;a78;a79;a8;a80;a81;a82;a83;a84;a85;a86;a87;a88;a89;a9;a90;a91;a92;a93;a94;a95;a96;a97;a98;a99;a991"
    #use the following codeline, it worked for me
    [string[]] $QueryRuleTerms = $QueryRuleConditionTerm.Split(";")
    $QueryRuleConditions = $QueryRule.QueryConditions
    $QueryRuleCondition = $QueryRuleConditions.CreateKeywordCondition($QueryRuleTerms,$true)
    $QuerySourceContextCondition = $QueryRule.CreateSourceContextCondition($ResultSource)
    $QueryRule.Update()
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Daniel Yang
    TechNet Community Support

  • [Forum FAQ] How to install and configure Windows Server Essentials Experience role on Windows Server 2012 R2 Standard via PowerShell locally and remotely

    As we all know,
    the Windows Server Essentials Experience role is available in Windows Server 2012 R2 Standard and Windows Server 2012 R2 Datacenter. We can add the Windows Server
    Essentials Experience role in Server Manager or via Windows PowerShell.
    In this article, we introduce the steps to install and configure Windows
    Server Essentials Experience role on Windows Server 2012 R2 Standard via PowerShell locally and remotely. For better analyze, we divide this article into two parts.
    Before installing the Windows Server Essentials Experience Role, please use
    Get-WindowsFeature
    PowerShell cmdlet to ensure the Windows Server Essentials Experience (ServerEssentialsRole) is available. (Figure 1)
    Figure 1.
    Part 1: Install Windows Server Essentials Experience role locally
    Add Windows Server Essentials Experience role
    Run Windows PowerShell as administrator, then type
    Add-WindowsFeature ServerEssentialsRole cmdlet to install Windows Server Essentials Experience role. (Figure 2)
    Figure 2.
    Note: It is necessary to configure Windows Server Essentials Experience (Post-deployment Configuration). Otherwise, you will encounter following issue when opening Dashboard.
    (Figure 3)
    Figure 3.
      2. Configure Windows Server Essentials Experience role
    (1)  In an existing domain environment
    Firstly, please join the Windows Server 2012 R2 Standard computer to the existing domain through the path:
    Control Panel\System\Change Settings\”Change…”\Member of. (Figure 4)
    Figure 4.
    After that, please install Windows Server Essentials Experience role as original description. After installation completed, please use the following command to configure Windows
    Server Essentials:
    Start-WssConfigurationService –Credential <Your Credential>
    Note: The type of
    Your Credential should be as: Domain-Name\Domain-User-Account.
    You must be a member of the Enterprise Admin group and Domain Admin group in Active Directory when using the command above to configure Windows Server Essentials. (Figure 5)
    Figure 5.
    Next, you can type the password for the domain account. (Figure 6)
    Figure 6.
    After setting the credential, please type “Y” to continue to configure Windows Server Essentials. (Figure 7)
    Figure 7.
    By the way, you can use
    Get-WssConfigurationStatus
    PowerShell cmdlet to
    get the status of the configuration of Windows Server Essentials. Specify the
    ShowProgress parameter to view a progress indicator. (Figure 8)
    Figure 8.
    (2) In a non-domain environment
    Open PowerShell (Run as Administrator) on the Windows Server 2012 R2 Standard and type following PowerShell cmdlets: (Figure 9)
    Start-WssConfigurationService -CompanyName "xxx" -DNSName "xxx" -NetBiosName "xxx" -ComputerName "xxx” –NewAdminCredential $cred
    Figure 9.
    After you type the commands above and click Enter, you can create a new administrator credential. (Figure 10)
    After creating the new administrator credential, please type “Y” to continue to configure Windows Server Essentials. (Figure 11)
    After a reboot, all the configurations will be completed and you can open the Windows Server Essentials Dashboard without any errors. (Figure 12)
    Figure 12.
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Part 2: Install and configure Windows Server Essentials Experience role remotely
    In an existing domain environment
    In an existing domain environment, please use following command to provide credential and then add Server Essentials Role: (Figure 13)
    Add-WindowsFeature -Name ServerEssentialsRole
    -ComputerName xxx -Credential DomainName\DomainAccount
    Figure 13.
    After you enter the credential, it will start install Windows Server Essentials role on your computer. (Figure 14)
    Figure 14.
    After the installation completes, it will return the result as below:
    Figure 15.
    Next, please use the
    Enter-PSSession
    cmdlet and provide the correct credential to start an interactive session with a remote computer. You can use the commands below:
    Enter-PSSession –ComputerName
    xxx –Credential DomainName\DomainAccount (Figure 16)
    Figure 16.
    Then, please configure Server Essentials Role via
    Add-WssConfigurationService cmdlet and it also needs to provide correct credential. (Figure 17)
    Figure 17.
    After your credential is accepted, it will update and prepare your server. (Figure 18)
    Figure 18.
    After that, please type “Y” to continue to configure Windows Server Essentials. (Figure 19)
    Figure 19.
    2. In a non-domain environment
    In my test environment, I set up two computers running Windows Server 2012 R2 Standard and use Server1 as a target computer. The IP addresses for the two computers are as
    below:
    Sevrer1: 192.168.1.54
    Server2: 192.168.1.53
    Run
    Enable-PSRemoting –Force on Server1. (Figure 20)
    Figure 20.
    Since there is no existing domain, it is necessary to add the target computer (Server1) to a TrustedHosts list (maintained by WinRM) on Server 2. We can use following command
    to
    add the TrustedHosts entry:
    Set-Item WSMan:\localhost\Client\TrustedHosts IP-Address
    (Figure 21)
    Figure 21.
    Next, we can use
    Enter-PSSession
    cmdlet and provide the correct credential to start an interactive session with the remote computer. (Figure 22)
    Figure 22.
    After that, you can install Windows Server Essentials Experience Role remotely via Add-WindowsFeature ServerEssentialsRole cmdlet. (Figure 23)
    Figure 23.
    From figure 24, we can see that the installation is completed.
    Figure 24.
    Then you can use
    Start-WssConfigurationService cmdlet to configure Essentials Role and follow the steps in the first part (configure Windows Server Essentials Experience in a non-domain environment) as the steps would be the same.
    The figure below shows the status of Windows Server Essentials.
    Figure
    25.
    Finally, we have successfully configured Windows Server Essentials on Server1. (Figure 26)
    Figure 26.
    More information:
    [Forum
    FAQ] Introduce Windows Powershell Remoting
    Windows Server Essentials Setup Cmdlets
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

  • Issues updating/setting multi value lookup columns via powershell

    Hi All,
         I have an issue updating multi values in a lookup field via powershell
    I can update a single value  lookup field as below but can't get to update if its multi value.
    As stated below when I hardcode it. It works.
    No idea what 'm missing. Any help will be appreciated.
    #Hardcoded works below as you can see i'm setting 3 values
    $array = @($realval.Split(';'))
    for ($i = 0; $i -lt $array.Count - 1; $i += 2)
    $word = $array[$i].Trim('#')
    $number = $array[$i+1].Trim('#')
    "$number $word"
    $lookupvalue1 = GetLookUpValues -val $number
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue = New-Object Microsoft.SharePoint.SPFieldLookupValue
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue2 = New-Object Microsoft.SharePoint.SPFieldLookupValue
    [Microsoft.SharePoint.SPFieldLookupValue] $lookupvalue3 = New-Object Microsoft.SharePoint.SPFieldLookupValue
    $lookupvalue.LookupId = 1
    $lookupvalue2.LookupId = 2
    $lookupvalue3.LookupId = 6
    $itemValues.Add($lookupvalue)
    $itemValues.Add($lookupvalue2)
    $itemValues.Add($lookupvalue3)
    #$itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues;
    Write-Host "items:" $itemValues
    $CMRSItems.Update()
    # This works when its updating only one value but when it needs to update multivalue it only updates the last one
    #so for example with the lookupvalue above only 6 gets updated below
    $array = @($realval.Split(';'))
    for ($i = 0; $i -lt $array.Count - 1; $i += 2)
    $word = $array[$i].Trim('#')
    $number = $array[$i+1].Trim('#')
    #$number
    "$number $word"
    #send param to GetLoolValues func to return records as SPFieldLookupValue
    $lookupvalue1 = GetLookUpValues -val $number
    #I can view the lookupvalue returned successfully
    #Write-Host $lookupvalue1
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    #This LookupId returns 3 values like on the hardcoded one above like so :1,2,6
    $lookupvalue.LookupId = $number
    $itemValues.Add($lookupvalue)
    $CMRSItems["Event Type"] = $itemValues;
    #I can view the items returned successfully
    Write-Host "items:" $itemValues
    $CMRSItems.Update()

    The problem I can see with your code is that the below line of code, you are instantiating inside the for loop. This should have been outside the for loop as by keeping it inside the loop you are overriding the value.
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $itemValues = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    Please have a look at the below solution and modify your code as per your requirement. What I am trying to achieve in the below code is that I have a listA in which one of the field is being used as a multi-lookup in my listB.
    $lookupCollection = $something.split(";")
    $LookupMasterList=$web.Lists["ListA"]
    [Microsoft.SharePoint.SPFieldLookupValueCollection] $lookupValueCollection = New-Object Microsoft.SharePoint.SPFieldLookupValueCollection
    #Get the Lookup Item from Parent List
    foreach($item in $lookupCollection){
    IF([string]::IsNullOrEmpty($item.trim())) {
    continue;
    $LookupItem = $LookupMasterList.Items | Where-Object { $_.Item("FieldInternalName") -eq $item.trim()}
    if($LookupItem -ne $null)
    $myLookup = New-Object Microsoft.Sharepoint.SPFieldLookupValue($LookupItem.ID,$item.trim())
    $lookupValueCollection.Add($myLookup);
    #Set the Lookup field value
    if([string]::IsNullOrEmpty($lookupValueCollection)){
    continue;
    else{
    $newItem["Lookupfieldinternalname"] = $lookupValueCollection
    The above logic has no hard coding and it fetches the lookup information directly from the master list and generates a collection based on that. You can modify the above code as per your requirement.
    Geetanjali Arora | My blogs |

  • How to set Full Crawl Schedule as None via Powershell command

    How to set Full Crawl Schedule as None via Powershell command

    $ssa = "Search Service Application"
    $contentSource = Get-SPEnterpriseSearchCrawlContentSource -SearchApplication $ssa -Identity "Local SharePoint Sites"
    $contentSource.IncrementalCrawlSchedule = $null
    $contentSource.FullCrawlSchedule = $null
    $contentSource.Update()
    Basically you set Schedule to Null.
    Amit

  • Setting the desktop background image via Powershell

    UPDATE: 
    I found the solution that addressed my problem, which I posted in a post below. Keeping the original post for Internet historical reasons as I the hope this helps someone else later on in their search for a solution. 
    ===============
    I have Bing'ed and I have Google'd and I haven't found a solid answer to setting the desktop wallpaper programmically.  I am trying to do this via PowerShell, but I would be happy for any other language flavor or application to work. 
    Below is the code I have tried to set the desktop background image. This has been scrounged from a few sources across the web. This solution works 25% of the time and I haven't figured out what the cause for success or failure of the execution. Or maybe
    it's neither, but waiting for Explorer to refresh. The only way to see the change 100% is to log out and log back in.
    I am running Windows 8.1 btw. 
    Thank you for looking.
    Function Get-WallPaper()
    $wp=Get-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper
    if(!$wp.WallPaper)
    { "Wall paper is not set" }
    Else
    {"Wall paper is set to $($wp.WallPaper)" }
    Function Refresh-Explorer {
    $code = @'
    private static readonly IntPtr HWND_BROADCAST = new IntPtr(0xffff);
    private const int WM_SETTINGCHANGE = 0x1a;
    private const int SMTO_ABORTIFHUNG = 0x0002;
    [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError=true, CharSet=CharSet.Auto)]
    static extern bool SendNotifyMessage(IntPtr hWnd, uint Msg, UIntPtr wParam,
    IntPtr lParam);
    [System.Runtime.InteropServices.DllImport("user32.dll", SetLastError = true)]
    private static extern IntPtr SendMessageTimeout ( IntPtr hWnd, int Msg, IntPtr wParam, string lParam, uint fuFlags, uint uTimeout, IntPtr lpdwResult );
    [System.Runtime.InteropServices.DllImport("Shell32.dll")]
    private static extern int SHChangeNotify(int eventId, int flags, IntPtr item1, IntPtr item2);
    public static void Refresh() {
    SHChangeNotify(0x8000000, 0x1000, IntPtr.Zero, IntPtr.Zero);
    SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, IntPtr.Zero, null, SMTO_ABORTIFHUNG, 100, IntPtr.Zero);
    Add-Type -MemberDefinition $code -Namespace MyWinAPI -Name Explorer
    [MyWinAPI.Explorer]::Refresh()
    Function Set-WallPaper($Value)
    echo "Setting background to: $value"
    Refresh-Explorer
    Set-ItemProperty -path 'HKCU:\Control Panel\Desktop\' -name wallpaper -value $value
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    rundll32.exe user32.dll, UpdatePerUserSystemParameters
    #sleep 1
    Refresh-Explorer
    #Stop-Process -ProcessName explorer
    NOTE: I left in a few commented out statements. I found that they do not offer any help in formulating a solution.
    Thank you.

    Great news! I found the solution and all props and credit goes to
    jsd1982 of the XKCD comic
    forum from a post he made in 2007 and some deep search kung-fu Googling on my part. Here is the
    direct link to the post.
    This solution has worked for me 100% of the time on Windows 8. The only gotcha I found (minor detail) was when setting this process to run as a scheduled task, I had to run it as elevated privileges for the code to compile in memory. Running this function
    from PowerShell at the command prompt was fine. 
    NOTE: The code below is a slight trimmed down version posted by jsd1982 to just set the desktop wallpaper. I removed the image fetching from the Internet and the color inversion.
    # Credit to jsd1982
    function Compile-Csharp ([string] $code, $FrameworkVersion="v2.0.50727",
    [Array]$References)
    # Get an instance of the CSharp code provider
    $cp = new-object Microsoft.CSharp.CSharpCodeProvider
    # Build up a compiler params object...
    $framework = [System.IO.Path]::Combine($env:windir, "Microsoft.NET\Framework\$FrameWorkVersion")
    $refs = new-object Collections.ArrayList
    $refs.AddRange( @("${framework}\System.dll",
    # "${mshhome}\System.Management.Automation.dll",
    # "${mshhome}\System.Management.Automation.ConsoleHost.dll",
    "${framework}\system.windows.forms.dll",
    "${framework}\System.data.dll",
    "${framework}\System.Drawing.dll",
    "${framework}\System.Xml.dll"))
    if ($references.Count -ge 1)
    $refs.AddRange($References)
    $cpar = New-Object System.CodeDom.Compiler.CompilerParameters
    $cpar.GenerateInMemory = $true
    $cpar.GenerateExecutable = $false
    $cpar.CompilerOptions = "/unsafe";
    $cpar.OutputAssembly = "custom"
    $cpar.ReferencedAssemblies.AddRange($refs)
    $cr = $cp.CompileAssemblyFromSource($cpar, $code)
    if ( $cr.Errors.Count)
    $codeLines = $code.Split("`n");
    foreach ($ce in $cr.Errors)
    write-host "Error: $($codeLines[$($ce.Line - 1)])"
    $ce |out-default
    Throw "INVALID DATA: Errors encountered while compiling code"
    [System.Reflection.Assembly]::LoadWithPartialName("System.Drawing") > $null
    [System.Reflection.Assembly]::LoadWithPartialName("System.Runtime") > $null
    # C# code to post to wallpaper
    $code = @'
    using System;
    using System.Drawing;
    using System.Drawing.Imaging;
    using System.Runtime.InteropServices;
    using System.IO;
    using System.Net;
    using Microsoft.Win32;
    namespace test
    public class Wallpaper
    const int SPI_SETDESKWALLPAPER = 20 ;
    const int SPIF_UPDATEINIFILE = 0x01;
    const int SPIF_SENDWININICHANGE = 0x02;
    [DllImport("user32.dll", CharSet=CharSet.Auto)]
    static extern int SystemParametersInfo (int uAction , int uParam , string lpvParam , int fuWinIni) ;
    public static void SetWallpaper(string uri)
    System.IO.Stream s = new WebClient().OpenRead(uri);
    Image img = System.Drawing.Image.FromStream(s);
    Bitmap copy = new Bitmap(img.Width, img.Height);
    Graphics g = Graphics.FromImage(copy);
    Rectangle rect = new Rectangle(0, 0, img.Width, img.Height);
    g.DrawImage(img, rect, 0, 0, img.Width, img.Height, GraphicsUnit.Pixel);
    g.Dispose();
    img.Dispose();
    // Save to a temp file:
    string tempPath = Path.Combine(Path.GetTempPath(), "wallpaper.bmp");
    copy.Save(tempPath, System.Drawing.Imaging.ImageFormat.Bmp);
    RegistryKey key = Registry.CurrentUser.OpenSubKey( @"Control Panel\Desktop", true ) ;
    key.SetValue(@"WallpaperStyle", 1.ToString( ) ) ;
    key.SetValue(@"TileWallpaper", 0.ToString( ) ) ;
    SystemParametersInfo( SPI_SETDESKWALLPAPER,
    0,
    tempPath,
    SPIF_UPDATEINIFILE | SPIF_SENDWININICHANGE );
    function Set-Wallpaper([string] $imgurl)
    compile-CSharp $code
    [test.Wallpaper]::SetWallpaper($imgurl)

  • Server 2012 R2: How do I set VLAN data for the Host Virtual Switch (via PowerShell)?

    I need to modify the Host (NOT the VM's) VMSwitch VLAN settings via Powershell for automation purposes.
    In Server 2012 (NOT R2), this can be done via modifying
    MSVM_VLANEndPointSettingData
    However, it seems in Server 2012 R2, that class is gone. I've manually searched through the MSVM classes, and it seems that the Host VMSWitch VLAN settings are stored
    in MSVM_EthernetSwitchPortVlanSettingData. Unfortunately, I have no way of tying that class to a specific VMSwitch.
    Any know how to do this on Server 2012 R2?

    Hi,
    I found some similar issue with your case, however this forum is not focus on the develop related issue,
    Therefore I suggest you more about the develop question please post to the MSDN forum.
    The related information:
    Problem with CPU load and WMI errors when Hyper-V is installed?
    http://social.technet.microsoft.com/Forums/windows/en-US/4eca1f42-8630-48b4-85fa-e9569445d832/problem-with-cpu-load-and-wmi-errors-when-hyperv-is-installed
    The third party solution:
    How to: Fix error 0x80041010 on Windows 8.1 + Hyper-V
    http://www.seankilleen.com/2013/11/how-to-fix-error-0x80041010-on-windows.html
    MSDN forum Developer Network
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=WAVirtualMachinesVirtualNetwork&filter=alltypes&sort=lastpostdesc
    Thanks for your understanding and support.
    Hope this helps.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to set PropertyBag Key and value at farm and sitecollection via PowerShell

    Hi,
    how could i create PropertyBag Key and value at farm and sitecollection via PowerShell?
    Best Regards
    Bog
    Developers Field Notes | www.bog1.de

    Hey, you can do it as follows 
    asnp *sh*
    $site = get-spsite "site url"
    $web = $site.openweb()
    $web.AllProperties["NEW KEY"] = "NEW VALUE"
    $web.update()
    $web.dispose()
    Your new custom property will be present in the web Property bag. 
    and you can access it by $web.AllProperties["New Key"] or simply $web.Properties["New Key"]
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • DNS set up

    I have problem setting up a correct DNS. This is a possible cause Open Dir doesn't work, in-fact I'm unable to create an Open Directory Master; while all the other services (web, mail, ical) work fine.
    The server name on ServAdmin top left side is macweb.local; the machine IP is 192.168.115.24.
    From term the command changeip -checkhostname, prompts the following:
    "Primary address = 192.168.115.24
    Current HostName = macweb.server.com
    The DNS hostname is not available, please repair DNS and re-run this tool.
    dirserv:success = "success""
    So far I created under the DNS function of ServAdmin a primary zone with:
    zone name=server.com
    nameserver-hostname (fqdn)=macweb.server.com.
    Then a record machine named=macweb
    with two IP addresses under it: 127.0.0.1 and 192.168.115.24
    obtaining two reverse zones mapping macweb.server.com on the two ip.
    Re-running the changip command the result doesn't change.
    Any suggestion is very well appreciated.
    Alberto.
    Message was edited by: albfran
    Message was edited by: albfran

    [Here is a DNS server set-up sequence|http://labs.hoffmanlabs.com/node/1436]. That's end-to-end.
    Are you strictly referencing this DNS server from your LAN and from your DHCP server, or are there references to any other DNS servers mixed here?
    Assuming your server here is your DNS server, is your DNS server here referencing itself (in the guise of the 127.0.0.1 loopback address) via System Preferences > Network controller > static IP, static DNS server setting? Or is it referencing some other DNS server?
    Your other clients on your LAN can refer to your DNS server via its static IP address, but the DNS server here should use the loopback address.
    Post the output of the Terminal.app commands +dig server.example.com+ and +dig -x server.ip.address.here+ in its entirety, and I'll have a look at the data returned. (If you want to obfuscate your domain there, that's fine, but don't obfuscate the 192.168.0.0/24 addresses anywhere in what's returned, and the obfuscation of the host names needs to be consistent for the output to be useful in diagnosing this.)
    And FWIW, you probably aren't the organization that has registered the server.com domain name, so please stop using that domain either for real in your configuration, or using it as your example domain name. If your intent is to obfuscate your domain name (and which is fine by me) then use example.com, example.net or example.org as your domain name. These are RFC-reserved example domains. This usage both avoids referencing a domain you don't have registered, and it makes your intent here clear. It means I don't have to ask you "is that your real domain, or are you obfuscating?".

  • Configure DNS for website hosted externally

    Hi,
    I've configured DNS and it's all working fine except we can't access our own website which is hosted by another ISP with a different WAN IP.
    If I add a www record we can access the the standard 10.4 placeholder page but if we remove that record it can't find anything.
    I know I need to add a record to point to the Web Hosting ISP's WAN IP but am unsure how to do this.
    Thanks in advance.
    intel iMac 20"   Mac OS X (10.4.6)  

    >In 10.3 I knew how to create a www record linked
    to a partular IP but I'm unsure how to do this in
    10.4
    The interface is a little different, but the process
    is the same - use Server Admin -> DNS, select your
    zone file and add a new record (via the + button).
    Set the name to 'www' and give it the IP address of
    your ISP-hosted site.
    Thanks Camelot.
    So it's a machine that needed to be added! I find the new termanology quite confusing. In all my reading about DNS I've never heard "machines" mentioned. It's straight forward now you've explained it.
    Thanks alot for your help.
    MJ

  • Hit with Virus that executed via PowerShell Scripting. Can I disable Powershell on my network via Group Policy and what implications does that have for me.

    Our network was hit recently with virus previously unknown, O97M.Crigent.  It is a nasty Macro virus that targets Microsoft Office Documents & Spreadsheets and uses a combination of Macros and Scripts via Powershell. 
    How do I disable PowerShell scripting via Group Policy?
    Will this raise any issues such as random application or network failures or other issues?
    Can I apply it to the entire domain or should I be selective and only apply it to the workstations?
    Network Summary: Windows 2008 Active Directoy Server, 75% Windows 7, 25% Windows XP workstations.
    DouglasOfSanMarcos

    Disabling Windows PowerShell can be done with GPO:
    Computer Configuration | Administrative Templates | Windows Components | Windows PowerShell
    From GPO Description: "This setting exists under both "Computer Configuration" and "User Configuration" in the group policy editor. The "Computer Configuration" has precedence over "User Configuration."
    By default this option is restricted any way on computers.
    I would be very selective when apply it at all:
    Workstations - I would apply to test group of workstations first, just to see that there are no side effects before applying to all computers. 
    Server - I wouldn't apply it at all. I have seen too many issues when setting this policy on Exchange and other systems.
     If you are using a Group Policy to define a PowerShell logon, logoff or computer script, that script will disregard any execution policy set locally or through a GPO.
    http://4sysops.com/archives/set-powershell-execution-policy-with-group-policy/
    http://technet.microsoft.com/en-us/library/hh849812.aspx
    Please take a moment to Vote as Helpful and/or Mark as Answer where applicable. Thanks.

  • How to know via PowerShell "did user install office on his computer with office 365 or not"

    Hello. Sorry for my english.
    Subject: How to know via PowerShell "did user install office on his computer with office 365 or not"
    I set to users Office 365 ProPlus license, that allows a user to install Office on up to five computers. I want to know, user use this opportunity or not, install office or not.
    User can view his installation in the Office 365 portal:
    But how I (like admin Office365) can view this information? Maybe via PowerShell?
    Thank you...

    Hi,
    Please see the
    blog, I copied the part of here:
    ====
    Viewing a list of Office 365 ProPlus installations
    A user can see which computers she has installed Office on by signing in to the Office 365 Portal and going to the
    software page.
    Only the signed in user can see this information.  Even if you are the administrator for your organization's Office 365 subscription, you can't see this information in any of your Office 365 administrative views. This also means you can't deactivate
    a user's installation of Office on a specific computer. More on deactivation in a bit.
    ====
    If you have further question about Office 365, I recommend you post the question to Office 365 forum:
    http://community.office365.com/en-us/f/148.aspx
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Could someone who has dns set up correctly confirm that this test works?

    The test that's here http://docs.info.apple.com/article.html?artnum=106798 says if you attempt to visit this link:
    http://17.254.0.91
    and you are taken to Apple's page then you probably don't have your DNS set up correctly.
    Can anyone confirm, who has their DNS set up correctly, that attempting to visit that link does not work for them please?
    TIA

    Right, thanks for that info. I don't understand what all the code stuff is at all, but I do understand this:
    If you type in the link stated and you are taken to Apple’s page then DNS IS SET UP CORRECTLY.
    I'm still confused though. In that article/test in part of its explanation of DNS it says:
    If you encounter some applications that continue to work, it may be because they are set up to go directly to an IP address, bypassing the need for DNS service.
    Surely typing in http://17.254.0.91 into your browser is a way of making your browser access apple's site *bypassing DNS*? -- because you're using the IP address irradicating the need for changing a name into an IP address. The way to test if DNS is working, surely, is to try and access apple's site via www.apple.com? Not http://17.254.0.91.
    Thanks.

  • Is there a way to enable & configure Volume Discounts via the Product Import Spreadsheet? Is there a way to enable more than 2 Quantity Thresholds?

    Is there a way to enable & configure Volume Discounts via the Product Import Spreadsheet? Is there a way to enable more than 2 Quantity Thresholds?

    Hi Michael,
    You can set the thresholds via an import file. The easiest way to do this (and this goes for all importable data, webapps included, 301 redirects and so on) is this:
    1. go into the Admin and create a single item, in you case create a test product and set the thresholds
    2. export that data - in your case export the product list
    3. take a look at how the data looks like in the export file so you can get an idea of how the format should be like in the import file
    Unfortunately you cannot set more than 2 thresholds, that is not possible at the moment.
    Thanks,
    Mihai

  • Can you add delegate access to a user's calendar or mailbox folder via powershell?

    Basically I want to know if you can grant a user delegate access to another user's calendar or meeting room using native  powershell commands?
    I know you can do this via method 1, listed below, however when you grant permissions in this way and if a user wants to see who has delegate access to their calendar or inbox by going to delegate access in outlook they will not see user's who have access
    to their calendar or inbox.
    Method 1:
    Add-MailboxFolderPermission -Identity "userA:\Calendar" -User UserB -AccessRights editor
    The above is a nice and simple way of granting userB EDITOR access to UserA's calendar.
    But as stated above as you are using mailboxFolderPermissions and not DelegateAccess, this applies directly to this folder and if userA goes to their delegate access view in Outlook, they will not see that userB has access to their calendar.
    I know that you can use the below commands to see a list of user's who have delegate access to you calendar:
    Get-Mailbox userA | Get-CalendarProcessing | select resourcedelegates
    I am new to powershell and don't know if there is a way of setting delegate access to a user's calendar or inbox/folder via powershell commands, similar to the above.
    Any help with this query would be much appreciated!
    thanks

    Delegate access is simply a combination of folder rights (which you've described) and Send As right, which is conferred by Add-MailboxPermission or Send On Behalf of right, which I'm not sure if you can confer with PowerShell. Set-CalendarProesssing applies
    to resource mailboxes like conference rooms, not to user mailboxes.
    Update: "Send on Behalf of" is conferred this way:
    Set-Mailbox UserMailbox -GrantSendOnBehalfTo UserWhoSends
    Ed Crowley MVP "There are seldom good technological solutions to behavioral problems."

Maybe you are looking for

  • Idoc not received in xi

    Hi, i using idoc to file  scenario  . idoc are getting posted from sap sucefully i.e  status 03 & no entries are found in sm58  .  I am unable to trace the idoc  in xi i.e idx5 , sxmb_moni  . I have create port in idx1 for r3 also. I am unable trace

  • PLEASE HELP!!! GARAGEBAND CRASHES WHEN TRYING TO OPEN OR CREATE A PROJECT!!!!!!

    When I try to open or create a project in garageband 11 (running osx 10.9) it just crashes. The spinning wheel just stays there.

  • Why can't I wake up my mac book pro

    Why does my mac book pro keep going to sleep?  I can't wake it up.

  • [SOLVED] BCM4313: broadcom-wl problem, I can not set any ESSID

    Hi guys I'm experiencing a weird problem with my laptop wireless card, a Broadcom 4313. I have installed the broadcom-wl driver as suggested in the Wiki and everything went smoothly during the installation, I can properly load the module with modprob

  • Get Most Years out of Battery?

    From Apple web site and posts here I know: 1. Battery should be discharged and fully charged once a month. 2. Doesn't matter whether you use 10% or 70% of the battery before you re- charge it. 3. To make it last the longest, you should use it often.