Can DNSServer Powershell module cmdlets be used to add a host record with a blank name? i.e. "(same as parent folder)"

Giving Add-DnsServerResourceRecordA a blank name yields an error (basically saying that the 'Name' parameter cannot be null or empty). In DNS Manager (dnsmgmt.msc)
adding such a host record yields a record with the same name as the parent folder, denoted by "(same as parent folder)" in the Name column.
Is there some flag I can pass to Add-DnsServerResourceRecordA to achieve the latter functionality? Is there some other way to achieve this in Powershell?
I currently have the line of PS below, and if $name="" I get the error.
Add-DnsServerResourceRecordA -IPv4Address $ip -ZoneName $zone -Name $name -ComputerName $dns

Thanks, Calin!
This could be added as an example here: http://technet.microsoft.com/en-us/library/jj649925.aspx
Now that I see your answer Example 6 looks like it was supposed to use -Name "." but part of the line is missing so it just looks broken instead.

Similar Messages

  • Can the badi of MIRO be used to add/delete the material documents in MIRO?

    Hi ,
    Can the BADI of MIRO be used to add/delete the material documents in MIRO? As I use call transaction to call 'MIRO' , during I fill in the bdc tab of the MIRO, I want to use its badi to delete/add some listed material documents in the items of the MIRO.
    If you have solution, please let me know. Thank you very much.

    Thank you for your reply.
    Yes, I have finished the call bapi code. But the users want to change some post date, tax, amount and some account values
    during MIRO. So I tried to use call bdc.
    But when I call bdc to run miro, I need to update the material documents reciords which are choosed according to some specific logic.

  • Can I remove photo shop 3 using windows add and remove after transfering photos to elements 10

    can I remove photo shop 3 using windows add and remove after transfering photos to elements 10. Will I lose any of these photos in elements 10?

    Yes you can remove it and your photos will not be removed. Un install it from add or remove or from the start menu.

  • My mother is visually impaired but can easily play scrabble, bridge, crib on my ipad.  Has anyone with a vision issue experienced these same games as easily on the ipad mini?

    My mother is visually impaired but can easily play scrabble, bridge, crib on my ipad.  Has anyone with a vision issue experienced these same games as easily on the ipad mini?  Would prefer to buy the smaller one if she can read it successfully.

    Thanks jared,
    I'm still dealing with this issue through Apple. Some time after I posted this, I contacted Apple again. They did start a case up for me, as I was experiencing the same behavior on two different machines, with two different versions of Windows.
    So far it remains unsolved. I've logged iClouds for Windows on my desktop, which is brand new, then logged for awhile after completely uninstalling Norton Security Suite, depending on the Microsoft security for some time, and finally logged after I uninstalled iCloud for Windows, restarted, installed a clean download, and connected using a completely different test account, which Apple set up for me. None of this made any difference. Looking at the logs, it seems every 10 minutes, iCloudServices.exe creates a new TCP connection to confirm I'm using less than 5GB on iCloud, (which I am by a good margin, using less than 2GB), it seems this connection is not closed, and when the next iteration rolls around 10 minutes later, a new TCP connection is created. I come very close to having 6 TCP connections created per hour, until I restart my computer. This works out to... 6 x 24 = 144/day.
    Perhaps the article you posted will shed some further light on this. I'm thinking seeing the state of the connection through netstats, at the least, could help.
    For the last week, I've been putting a hold on further logging, as Apple wants me to create a new user account on one of my computers, install iCloud for Windows there, and log it running in the other account. This however basically means I cannot use my computer for a fair number of hours, and I've been busy enough with work the past week that I haven't the time or energy to afford to set this up and run it. I've had need of my computers too much for the past week.

  • How can I delete an Apple ID from one device and replace it with a different ID on that same device?

    How can I delete an Apple ID from one device and replace it with a different ID on that same device?

    Tthe brute force method: start with Settings > iCloud and turn off Find My (you will need the password), then change the iCloud ID, then go to the apps such as Messages, FaceTime, etc, and delete the Apple ID and enter the new one.

  • How can I publish my iweb site using Jumpline as a host?  Anyone done it?

    My dad has a hosting account with Jumpline and can have an infinite amount of websites with unlimited storage (type of account is no long available fyi), so we have it set up on his end (thanks to help from a true IT guy, but he is a PC IT guy) but now I need to know what to do to publish the site from the iweb end... I am not familiar with ftp or much of anything with hosting and servers, etc.  I have the user information, password and a location of where the website is set up at on the Jumpline server but again just not sure how to go about this in iweb.  Any help would be appreciated!!    I am using iweb v. 3.0.4

    Nevermind!!  I didn't realize I could use the FTP option for this server - it's publishing right now! 

  • Want to use "LINE-IN" but keeps recording with "BUILT-IN MICROPHONE"?

    Set up Mac>System Preferences>Sound and choose LINE-IN......check!
    Set up Audio MIDI setup default to Built-in Line-in, NOT microphone...check??
    okay.. i've been trying to record with a microphone that i have.
    i did everything i could to NOT record with the built-in mic.
    hasnt succeeded. I do not know what to do..
    I see other ppl with the same problem:
    http://discussions.apple.com/thread.jspa?messageID=6418401
    http://logicprohelp.com/viewtopic.php?p=19933&sid=cc5a97a30c63560ba8793515ecc5c1 91
    No real helpful answer.

    If I am not wrong, you need data from SQL tables in form of
    XML. Then you can get that straight from SQL by using FOR XML
    clause. FOR XML modes can be of 3 types RAW, AUTO or EXPLICIT. You
    can use the mode as per your need.
    For more information, please visit the link below:
    http://msdn2.microsoft.com/en-us/library/ms345137.aspx
    Thanks

  • Can't view jpegs on CD using Panasonic CD/DVD player/recorder

    Has someone else experienced this
    1. burn JPEGs from G5 to CD
    2. try to view JPEG files on Panasonic CD/DVD player DMC35S
    3. problem: either the files won't show at all or the files show every other space.
    - CDs not created on the MAC show perfectly so the Panasonic machine is ok. I think that the MAC some how adds a "code" to the end of the JPEG file that the machine can't interpret...??
    Any advice?

    If you are burning the CD from within iPhoto, I can understand how the DVD player would get confused. iPhoto creates a non-standard folder structure.
    Have you tried burning using the Finder or Toast? You would need to export the photos or drag and drop them out of iPhoto.

  • Can anyone tell me how to use the loops and backing tracks with a single guitar input? I can't seem to figure out how to set this up

    I am trying to configure Mainstage to input my own guitar and add a backing track from the library or a loop but, I can figure out how to open or add the tracks I've downloaded. Any help would be great

    did you try the PlayBack preset/template?
    once you open the PlayBack plug-in you just load the tracks from the plug-in's menu.

  • My 5s can not open the screen and use it while charging. Anyone with same problem?

    My 5s cannot open screen and use it when charger is connected. Anyone knows why?

    Do you use the original charger?
    My friend had the same problem with fake chinese charger.
    He changed a charger and everything is fine now.
    Maybe your charger just broken and needed to replace.

  • Can I install boot camp drivers using an automated command for deploying with sccm

    I would like to include the boot camp installer as part of my SCCM task sequence.  I have imported the drivers but they don't all install and in turn it fails to complete.
    In order to include the installer I need to let the installer run unattended and I cannot find any command line switches for that purpose.

    The Bootcamp setup.exe is a silent Installer. See the following part from AutoUnattend.xml.
    </settings>
        <settings pass="specialize">
            <component name="Microsoft-Windows-Deployment" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <RunSynchronous>
                    <RunSynchronousCommand wcm:action="add">
                        <Order>1</Order>
                        <Path>cmd /c "FOR %i IN (X F E D C) DO (FOR /F "tokens=6" %t in ('vol %i:') do (IF /I %t NEQ "" (IF EXIST %i:\BootCamp\BootCamp.xml Reg ADD "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v AppsRoot /t REG_SZ /d %i /f )))"</Path>
                    </RunSynchronousCommand>
                </RunSynchronous>
            </component>
        </settings>
        <settings pass="oobeSystem">
            <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                <FirstLogonCommands>
                  <SynchronousCommand wcm:action="add">
                    <Description>AMD CCC Setup</Description>
                    <CommandLine>%AppsRoot%:\BootCamp\Drivers\ATI\ATIGraphics\Bin64\ATISetup.exe -Install</CommandLine>
                    <Order>1</Order>
                    <RequiresUserInput>false</RequiresUserInput>
                  </SynchronousCommand>
                  <SynchronousCommand wcm:action="add">
                      <Description>BootCamp setup</Description>
                      <CommandLine>%AppsRoot%:\BootCamp\setup.exe</CommandLine>
                      <Order>2</Order>
                      <RequiresUserInput>false</RequiresUserInput>
                  </SynchronousCommand>
                </FirstLogonCommands>
            </component>
        </settings>

  • Can't get sound to play back on Movie Maker when recording with internal webcam/microphone

    I have a Windows 8, 64-bit  Envy notebook.   I tried using Google Hangouts but there wasn't any sound (the camera was fine).   
    Later, I decided to test the  internal microphone myself by  creating a Movie Maker file,  and clicking on Webcam and making a recording.  The camera worked but it played back in total silence. 
    I checked the settings for the microphone and the internal mic was properly set as the default.  I turned up the volume to the maximum.   Then I found directions for doing a sound check, and I was able to do the Sound Recording check and get audio when I played the file back.   
    But when I tried again to make a video,  i got zero in the playback. 
    Any idea what's going wrong? 
    Thanks,
    Pat

    Hello Myerspat,
    Welcome to the HP Forums, I hope you enjoy your experience! 
    I have read your post on how you are not able to get sound from your notebook computer, and I would be happy to assist you in this matter!
    To restore the audio to your notebook, I recommend following this document on No Sound from Speakers (Windows 8). This should help with the playback on your system.
    In addition, you can also follow @SuperMario1's thread on Troubleshooting Guide: Audio does not Work after a Certain Period of Time. This guide should help with your notebook's audio output in regards to a recent Windows Update.
    For more assistance, I will need to know:
    The Product and Model Number of your notebook computer.
    If your computer has completed all of its important Windows Updates.
    If you have updated your HP drivers using the HP Support Assistant.
    If this is an on-going, or recent issue.
    Please re-post with the results of your troubleshooting, as well as the requested information above. I look forward to your reply!
    Regards   
    MechPilot
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks” for helping!

  • Do I really HAVE to use a wired headset to record with Garageband? Is it 2015?

    I'm trying to record on my iPad with Garage band, using a Bluetooth headset.
    As many of you already know, there is quite enough being plugged in, balanced on laps, or set on tables while
    recording on an iPad. I have a perfectly good bluetooth headset to relieve some of the stresses of recording on
    a mobile interface, however it just isn't supported by this app? The app is very well aware of this, so it was not
    overlooked, and I certainly paid money for the app (and the ipad), so why am I limited?
    Not only would it be nice to hear a legit answer, or even possibly some feedback on how I can bypass this,
    but it would also be great if you would just go ahead and update garageband to support bluetooth headsets.
    -Freddy

    After re-reading the prompt, I see that there may be some kind of delay, but honestly that would just require me to move the track to fit, it's not that big of a deal.
    Freddy

  • Using field highlighter to highlight records with a certain date range

    I've been asked to highlight a field based on the fact that the "Submit" date is greater than a certain value. The problem is that there's no way to pre-determine what that value is. It changes.
    The user wants to be prompted for the value when he runs the report. That value would then be stored as a variable which would be used in the script to determine if the field should be highlighted.
    Does anyone know if there a way to do this?

    Thanks for your quick reply Raghavendra.
    How does that prompt the submitter for the Date value he wants to use and the date to compare the submit date against?
    Here's the scenario.
    A user wants to highlight all "new" tickets submitted since last time he ran the report. It's not like he runs the report every friday which would make it easy because then you'd compare the submit date to "today-7" so-to-speak. He runs the report randomly. He wants to be prompted for a date before the report runs to replace "today-7".
    Could you help explain how to prompt the use for that date.

  • [CS5] Using PDF Export Preset from Distiller with InDesign, doesn't work the same?

    Hello,
    We are in the process of reworking one of our workflows in which we would manually use Distiller to create a PDF. Now we are trying to automate this with InDesign. My first thought was that I could try using the same PDF Export Preset (.joboptions file) used in Distiller, load it into InDesign, and export my book as a PDF using this preset.
    For my current testing example, there are about 115 pages in this PDF document. The PDF that Distiller created is of pretty good quality, and is about 34MB. When I used the same .joboptions file to export an InDesign book of the same original documents as a PDF, the result is equal in quality, but is about 119MB.
    Does anyone know why they aren't even close in file size? Is InDesign packing more stuff (maybe related to the actual InDesign documents, or the book itself) into the final PDF? If so, is there anyway to get InDesign to give a similar PDF (in terms of both size and quality) using the .joboptions file from Distiller?
    Thanks in advance!

    Thanks for the reply!
    I won't be able to use Acrobat Pro, and my hope is to continue using InDesign/InDesign Server. Since my goal is to match what Distiller produces, is there a way (with InDesign) to export PDFs but to strip out the layers/interactivity/transparency that Distiller does not support? The output PDF will be used for archive purposes only.
    Thanks again for any advice!
    -Lloyd

Maybe you are looking for